Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subtract two times
Message
De
27/12/2004 07:01:56
 
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:
00972298
Vues:
16
hi,
thank you,
if i insert 14:20 at first time i can see at mytotaltxt 14:20
but if i insert again 15:30 ,i can't see anything mytotaltxt .
i want to see 29:50.
thanks
m.qasem

AND?
>What not works?
>
>>hi,
>>thank you,
>>but i need to sum this times as..
>>1.thisform.text1.value=14:35 then thisform.totaltxt.value=14:35
>>2.thisform.text1.value=16:35 then thisform.totaltxt.value=31:10
>>3.thisform.text1.value=4:35 then thisform.totaltxt.value=35:45 etc...
>>thanks.
>>m.qasem
>>
>>>>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
>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform