Hallo,
ich glaub ich stehe gerade wieder kräftig auf dem Schlauch.....
Wieso kann ich das Datumsfeld nicht auf 'null' stellen?
Zitat
GUICtrlSetData ( controlID, data [, default] )Parameters
For Date : date or time depending the style of the control
Gibt es ein besonderes Format????
Vielen Dank
Viele Grüße
Carsten
#include <GUIConstants.au3>
#include <date.au3>
#include <array.au3>
GUICreate ( "My GUI get date", 400,100,-1,-1,BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS),$WS_EX_ACCEPTFILES)
[/autoit][autoit][/autoit][autoit][/autoit][autoit]$uhrzeit =GUICtrlCreateDate (@hour&":"&@min&":"&@SEC, 10,10,70,20,$DTS_TIMEFORMAT) ;,$DTS_SHORTDATEFORMAT )
$nullstellen = GUICtrlCreateButton("0h",90,10,20,20)
GUISetState ()
[/autoit][autoit][/autoit][autoit]; Run the GUI until the dialog is closed
while 1
$msg = GUIGetMsg()
Select
case $msg = $GUI_EVENT_CLOSE
Exit
case $msg = $nullstellen
GUICtrlSetData($uhrzeit,"00:00:00")
;GUICtrlSetData($uhrzeit,"")
;GUICtrlSetData($uhrzeit,"01.01.2000")
; gehen alle NICHT .....
EndSelect
wend