Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Day (date)
Message
From
31/07/2001 16:27:55
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
30/07/2001 22:23:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00537530
Message ID:
00537995
Views:
14
>Alex-
>
>>As always, many ways to skin a fox. But I like the PADL() solution (that's the one I normally use). A quick unscientific timing of these functions in a loop showed PADL() to be over 40% faster. And using "@L 99", although there is nothing seriously wrong with it, looks to me a little '2.6ish'. <g>
>
>TRANSFORM isn't 2.6ish, is it? And we still have Format and InputMask clauses.
>
>Nice benchmark info, though. I like TRANSFORM when I don't know what sort of data I'll be seeing, or if it's more readable. Just my .02 USD.

Transform() is as much 2.xed as padx() - and they all accept any sort of parameter. You can get padc(datetime(), 40, '*-*') if you like, it will work.

Besides, I do prefer the "@L 99", because that's when I'm sure I'll get what I want; sometimes, a padx() function will operate on a number with all of its decimals, and the decimals tend to pop up uninvited.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform