The most elegant way to enable / disable a control bounded to a datasource on a form:
In the active method of the form's datasource or in the modified method of the field in the form datasource:
aTable_ds.object(fieldnum(aTable, theField)).allowEdit(logicCondition);
No comments:
Post a Comment