Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I sum two variables of date time type?
Message
From
03/05/2002 14:19:00
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
How can I sum two variables of date time type?
Miscellaneous
Thread ID:
00652542
Message ID:
00652542
Views:
54
hey guys:

I need to know how to obtain the minutes from this formula

dim myVar1 as date
dim myVar2 as date
dim MyResult as long

text1.text = timevalue(now)
text2.text = timevalue(now)+ 30
myVar1 = val(text1.text)
myVar2 = val(text2.text)
MyResult = myVar1 - MyVar2
msgbox MyResult

I am developing a software that will control tha Internet service time in a Internet Cyber Shop. Can you guys tell me if is possible to do that formula
a reality, since I am just obtaining 0 in the msgbox.

PS:

I know I can use timer controls for each of the users(the Pc's) but I don't want to look myself so limitated to public vars to set the timer time in each of the cases, I want a professional formula to work for all of them...
any idea?

Gracias mis amigos!
Next
Reply
Map
View

Click here to load this message in the networking platform