Yes.
But in case your control is not table-bound (=a control that is a field of the table in the SourceTable of the form), you need to give them a name. Then you can use:
Currform."the control".VISIBLE(FALSE);
Currform."the control".EDITABLE(FALSE);
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
CurrForm.VISIBLE := TRUE; or FALSE
CurrForm.EDITABLE := TRUE; or FALSE
CurrForm.ControlName.VISIBLE := TRUE; or FALSE
CurrForm.ControlName.EDITABLE := TRUE; or FALSE
Some properties can be changed at runtime, others not.
BUT if you want to change properties of a field, you need to program those.
There is no such truck as recordreference or fieldreference for the controls.
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Hi
some Properties are changed at runtime..
Ex...
If Editable Property is true then we can changed as yes or no.
If Editable Property is false then we can't changed as yes or no.
Because tables property are basics.
Hope this helps u
Devendra Kr. Sharma
IBIZ Consulting Services,India
Even if you set the visibility of a control on a form to FALSE, remember, any user can just press CTRL+F8 and see all the information. So, if it's confidential info, use 2 (or more) forms.
Comments
But in case your control is not table-bound (=a control that is a field of the table in the SourceTable of the form), you need to give them a name. Then you can use:
Currform."the control".VISIBLE(FALSE);
Currform."the control".EDITABLE(FALSE);
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
You can use the following statement
CurrForm.VISIBLE := TRUE; or FALSE
CurrForm.EDITABLE := TRUE; or FALSE
CurrForm.ControlName.VISIBLE := TRUE; or FALSE
CurrForm.ControlName.EDITABLE := TRUE; or FALSE
Hope this helps
Albert
my control is table-bound. Is it possible to change the table-bound control properties in dynamic. Is there any alternative solution...
Thanks,
Naidu...
BUT if you want to change properties of a field, you need to program those.
There is no such truck as recordreference or fieldreference for the controls.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
some Properties are changed at runtime..
Ex...
If Editable Property is true then we can changed as yes or no.
If Editable Property is false then we can't changed as yes or no.
Because tables property are basics.
Hope this helps u
IBIZ Consulting Services,India