Hey Dragan,
>Speed is a minor issue here - alen() is only a few milliseconds slower than retrieving a value of a variable,
>so calling it again doesn't cost much at all. Still, it's an old habit of mine - if it's a function, don't
>call it twice if you don't have to.
With the
vast majority of the tasks in VFP being I/O bound in nature, I don't think
that all of us should be that worried about calling a routine that "takes a bit of time."
Specifically, I think we should all be concentrating on maximizing the efficiency of our
queries, caching records in cursors and arrays, and wondering how our apps are going
to respond when multiple users are accessing the same data. That would be time well
spent, IMHO.
Anywho, Dragan, keep doing things the way you're doing them, and I'd only worry about
time considerations when warranted. That's the way I view all of this, anywho.(Shrug.)
Best Regards,
Randall
--
Randall Jouett
Amateur/Ham Radio: AB5NI
I eat spaghetti code out of a bit bucket while sitting at a hash table! Someone
asked me if I needed salt, and I said, "I'm not into encryption." :^)