Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Time Calculation
Message
 
 
À
30/09/1998 22:43:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00142443
Message ID:
00142849
Vues:
37
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform