Page 1 of 1

CHECKBOX MODIFY

Posted: Wed Jan 03, 2007 7:46 pm
by Ollie
I can:

REDEFINE GET oDBF:Sometext ID 4066 OF oDLG UPDATE NO MODIFY

but, I can't

REDEFINE CHECKBOX oDBF:IsaGift ID 4067 OF oDLG UPDATE NO MODIFY

(There is no 'NO MODIFY' clause to make the checkbox 'readonly'.)

Is there a way around this?

Posted: Wed Jan 03, 2007 7:59 pm
by Gale FORd
Local oCheck

REDEFINE CHECKBOX oCheck VAR oDBF:IsaGift ;
ID 4067 OF oDLG UPDATE

oCheck:disable()

Posted: Wed Jan 03, 2007 8:13 pm
by Ollie
Thanks Gale.

Posted: Wed Jan 03, 2007 8:49 pm
by Enrico Maria Giordano
Or

Code: Select all

REDEFINE CHECKBOX oCheck VAR oDBF:IsaGift ;
ID 4067 OF oDLG UPDATE WHEN .F.
EMG

Posted: Wed Jan 03, 2007 9:28 pm
by Ollie
Many thanks EMG, your solution is clean, I was dreading having to create all those LOCAL variables.

Super!