Geting the date from LANDESK Date Control OCX

dayv2005

Member
Ok i'm trying to make an separate window that im using the Landesk Date control on. When i click ok after the date is selected i want to return it to the previous screen.

The only problem is i can find the comhandle property that stores the date selected. Does anyone know how i can achieve this here's the code i been messing with and can't understand why it isn't working.

Code:
DO:
  DEF VAR chCtrlFrame AS COM-HANDLE NO-UNDO.
  DEF VAR Cvar AS DATE NO-UNDO.

  ASSIGN
      Cvar = chCtrlFrame:DLDDate:Date NO-ERROR.


  MESSAGE Cvar
      VIEW-AS ALERT-BOX INFO BUTTONS OK.

END.
 
Back
Top