Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Time Calculation
Message
 
 
To
30/09/1998 22:43:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00142443
Message ID:
00142849
Views:
36
Erik,

FWIW, the PAD() functions will convert from numeric to string directly, there's no need for the alltrim() and str() calls:

lcDays = padl( lnDays, 2, "0" )

>lcDays = PADL(ALLTRIM(STR(lnDays)),2,"0")
>lcHours = PADL(ALLTRIM(STR(lnHours)),2,"0")
>lcMinutes = PADL(ALLTRIM(STR(lnMinutes)),2,"0")
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform