Page 1 of 1

DTPicker on change clause

PostPosted: Mon Nov 06, 2006 7:48 pm
by pawelu
Antonio,

In current version of FWPPC this command is invalid:

Code: Select all  Expand view
   @ 20, 20 DTPicker oDTP Var dDate Size 80, 20 Pixel On Change DTPChange (oDTP)


Error is show: No exported method GETDATE. When we use bChange code block control is properly created.

Regards
Pawel

Test procedure:
Code: Select all  Expand view
Function TestH ()

   Local oWnd := Nil
   Local oDTP := Nil
   Local dDate := Date ()

   Define Window oWnd
   @ 20, 20 DTPicker oDTP Var dDate Size 80, 20 Pixel On Change DTPChange (oDTP)
   Activate Window oWnd

Return .T.

Function DTPChange (oDTP)

   LOcal dDate := oDTP : GetDate ()

Return .T.