Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtract two times
Message
 
À
27/12/2004 06:08:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7
Divers
Thread ID:
00971289
Message ID:
00972294
Vues:
18
>if thisform.text1.value=14:35 then thisform.totaltxt.value=14:35
In VALID event of the TextBox:
** Valid EVENT of the Thisform.Text1 
LOCAL ret_val

ret_val =  VAL(LEFT(this.Value,2))     < 24 .AND.;
           VAL(SUBSTR(this.Value,4,2)) < 60 .AND.;
           VAL(RIGHT(this.Value,2))    < 60
IF ret_val
   thisform.TotalTxt.Value = thisform.TimeAdd(this.Value, thisform.TotalTxt.Value)
ENDIF

RETURN ret_val
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform