icecr3amc4k3
Programmer
Hi everyone ,i am a student who learn foxpro so i have a question..
i have an assigment to make parking ticket program and i dont know how to calculate time difference
example :
car parking at 7.00(text1) and car out at 9.00(text2)
so i want to see the result at text3(result) this is the code i tried but failed
(form) (active)
thisform.text1.Value = DATETIME ()
thisform.text2.Value = DATETIME ()
(comand1) (click)
a = INT(thisform.text1.Value)
b = INT(thisform.text1.Value)
result = b - a
thisform.text1.Value = result
in this case i just want to calculate the minute,where the results every 60 minute are multiplied by (IDR 4000)
thank for everyone to sees and answer my question i hope god bless you all.
i have an assigment to make parking ticket program and i dont know how to calculate time difference
example :
car parking at 7.00(text1) and car out at 9.00(text2)
so i want to see the result at text3(result) this is the code i tried but failed
(form) (active)
thisform.text1.Value = DATETIME ()
thisform.text2.Value = DATETIME ()
(comand1) (click)
a = INT(thisform.text1.Value)
b = INT(thisform.text1.Value)
result = b - a
thisform.text1.Value = result
in this case i just want to calculate the minute,where the results every 60 minute are multiplied by (IDR 4000)
thank for everyone to sees and answer my question i hope god bless you all.