Jump to content

Get variable from _GUICtrlDTP_Create


Go to solution Solved by UE_morf_boon,

Recommended Posts

#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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...