Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Like loading the zeros in SQL
Message
 
À
05/05/2006 17:40:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01119748
Message ID:
01119793
Vues:
26
>>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)
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform