>>I have a no. of pages on a screen and 3 buttons to control
>>Adding,Saving or Cancelling data.
>>
>>Is there a way to automatically ‘enable’ the Save or Cancel button as soon as any field
>>has been changed. In other words I would like something with the following functionality:
>>
>>on_any_field_change thisform.MySavebutton.enable = .T.
>>on_any_field_change thisform.MyCancelButton.enable = .T.
>>
>>Maybe an assign method , but I have never used these ?
>>
>>Regards,,
>>
>>Gerard
>
>I do this using the InteractiveChange event. E.g., in the InteractiveDhange of a textbox to make sure there is data in the control to allow a save:
>
>
IF EMPTY( THIS.VALUE )
> THISFORM.cmdSave.ENABLED = .T.
>ELSE
> THISFORM.cmdSave.ENABLED = .F.
>ENDIF
>
>Bill
Oops, got the .T. and .F. backwards:
>
IF EMPTY( THIS.VALUE )
> THISFORM.cmdSave.ENABLED = .F.
>ELSE
> THISFORM.cmdSave.ENABLED = .T.
>ENDIF
Sorry
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.