Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Like loading the zeros in SQL
Message
From
06/05/2006 20:52:17
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01119748
Message ID:
01119906
Views:
19
>>>Try this
>>>
>>>*** Version VFP9 SP1
>>>CLEAR
>>>m.numest = 45
>>>? RIGHT('0000'+ALLTRIM(STR(m.numest)),4) &&& result 0045
>>>? PADL(m.numest,4,"0")                   &&& result 0045
>>>
>>
>>And let's not forget
>>
>>?transform(m.numest, "@L 9999")
>
>Hi Dragan,
>I agree with you.
>Transform is the favorite function for me.
>It's many other ways. But today is Friday... No update in Bulgaria is already Saturday 0:47. ;o)

It was Friday here as well... and didn't want to leave the thing unfinished. As they say, anything can be done in Fox at least three ways, or it's not worth doing :). So, just had to add the third way, to round it up.

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