Is er in visual basic 6 of .net een functie om tijden op te tellen
Voorbeeld: het is nu 19.50 en ik wil daar nog eens 30 minuten bij optellen zodat hij dus automatisch die eindtijd berekent; Ik weet niet of dit mogelijk is. is dit mogelijk dus?
Visual Basic:
1
2
3
4
5
6
7
8
9
| Public Sub test() Dim a As Date Dim B As Date a = Now B = a + CDate("0:30") MsgBox B End Sub |
Mij maak je absoluut niet wijs dat je MSDN geprobeerd hebt, of dat je ook maar zelf iets hebt geprobeerd in VB.
[ Voor 5% gewijzigd door Tukk op 27-11-2004 20:01 ]
Q: How many geeks does it take to ruin a joke? A: You mean nerd, not geek. And not joke, but riddle. Proceed.
MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctdateadd.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctdateadd.asp
code:
1
2
3
4
5
6
| sub test()
dim a as date, b as date
a = now()
b = dateadd("n", 30, a)
end sub |
klik eens op de gegeven link en lees de tekst eens goed..Verwijderd schreef op zaterdag 27 november 2004 @ 20:53:
ja dateadd had ik wel maar dat is voor datums en niet voor tijden...
Q: How many geeks does it take to ruin a joke? A: You mean nerd, not geek. And not joke, but riddle. Proceed.
Zie het commentaar hierboven dus. Dit had je zelf erg makkelijk kunnen vinden.
Vandaar dat dit topic nu dicht zit.
Vandaar dat dit topic nu dicht zit.
"I had a problem, I solved it with regular expressions. Now I have two problems". That's shows a lack of appreciation for regular expressions: "I know have _star_ problems" --Kevlin Henney
Pagina: 1
Dit topic is gesloten.
![]()