Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert numeric field information into time information
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01526846
Message ID:
01526848
Vues:
72
This message has been marked as a message which has helped to the initial question of the thread.
Would this work for you?
? cTimeformat(9.5)
? cTimeformat(6.75)

FUNCTION cTimeFormat(n)
return RIGHT("00" + ALLTRIM(str(INT(n))),2) + ":" + RIGHT("00" + ALLTRIM(str(INT(60 * (n- INT(n))))),2)
>hi all,
>
>i have 9.5 and i want 09:30
>i have 6.75 and i want 06:45
>
>how to resolve my problem ?
>
>Thank in advance for help
>
>bernhart

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform