by DanielPuente » Wed Dec 14, 2005 2:01 am
Brian:
You can manage the date as a character variable por the specific get, or you can:
SET CENTURY OFF
REDEFINE GET oFecha VAR vFecha ID 102 FONT oFont2 of oDlg COLOR CLR_BLACK,RGB(255,255,168)
REDEFINE GET oFecha2 VAR vFecha2 ID 34 FONT oFont2 of oDlg COLOR CLR_BLACK,RGB(255,255,168)
oFecha2:bGotFocus:={|| centuryon(oFecha2) }
oFecha2:bLostFocus:={|| centuryoff() }
ACTIVATE DIALOG oDlg CENTERED ON INIT FECHASINIT(oFecha2)
STATIC FUNCTION FECHASINIT(oFecha2)
SET CENTURY ON
oFecha2:Refresh()
SET CENTURY OFF
RETURN NIL
STATIC FUNCTION CENTURYON(oFecha2)
SET CENTURY ON
oFecha2:Refresh()
RETURN NIL
STATIC FUNCTION CENTURYOFF()
SET CENTURY OFF
RETURN NIL
Regards,