UE_morf_boon 0 Posted January 26 Share Posted January 26 #include <GUIConstantsEx.au3> #include <GuiDateTimePicker.au3> #include <WindowsConstants.au3> Global $GUI = GUICreate("", 320, 120) Global $Date = _GUICtrlDTP_Create($GUI, 10, 5, 230, 20) ; GUICtrlCreateDate("", 10, 5, 230, 20, $DTS_SHOWNONE) _GUICtrlDTP_SetFormat($Date, "dd.MM.yyyy") Global $idBtn = GUICtrlCreateButton("Calendar", 250, 5, 60, 20) GUISetState(@SW_SHOW) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE _GUICtrlDTP_Destroy($Date) ExitLoop Case $idBtn MsgBox(0, " ", GUICtrlRead($Date)) EndSwitch WEnd --- Hi guys. Here is my code. I can't find and figure out how to put a value from _GUICtrlDTP_Create into a variable. I get "0" all the time. Please help me) Link to post Share on other sites
Solution UE_morf_boon 0 Posted January 26 Author Solution Share Posted January 26 Sorry, it looks like I was looking badly. Solution: ControlGetText($Date,"","")) Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now