× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Instead of "field = *blancs;" use "clear field;" It should be faster for varying, because instead of filling the field with spaces it will just set the leght to zero. A very important difference if you want to concatenate some data to the field.
And, the intention of "clear" seems pretty clear, without any aditional explanation :-)

John Yeung wrote:

On Mon, May 21, 2012 at 3:59 PM, Albert York <alfromme@xxxxxxxxx> wrote:

I guess I didn't make myself clear.

Forgetting the details, is it better to clear an entire field or to
clear a subscripted portion of the field. Which incurs more overhead?


If clearing the whole field satisfies your functional requirements,
just clear it. This would be my recommendation even if the
performance was twice as slow. Worry first about readability and
maintainability. Unless you are already writing the simplest-LOOKING
code, and you are ACTUALLY EXPERIENCING performance that is too slow,
don't resort to complicated-looking code.

John


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.