set a break point on the line StatusBar1.Panels....
then run the program until you break at this line. then press Ctrl+G to open the debug window. Then in the debug window write ?strTime you should now see the contents of strTime you can do the same for ? frmOptions.DTPicker1.Value & " " & frmOptions.DTPicker2.Value
also! datediff returns a numeric value and StatusBar1.Panels(1).Text is text
so you could try StatusBar1.Panels(1).Text = cstr(DateDiff("n", strTime, frmOptions.DTPicker1.Value & " " & frmOptions.DTPicker2.Value))
another way is to put the values from both dtPicker and put them in a global date variable. you hav access the these anywhere in your program. Now I am off for the evening, will take a look tomorrow
Ok, jeg har fundet ud af, at hvis jeg ikke vælge noget tidspunkt, så skriver den kun dato, men hvis jeg ændre den fra 00:00:00 til et eller andet andet, så skriver den både dato og tid, fra DTPicker2
Mystisk.....
Har du nogen ide om hvordan man kan få den til kun at skrive tid ??
Lige meget har fundet ud af det.....skulle bare skrifte n ud med s
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.