Form Controls properties

VE024VE024 Member Posts: 17
Hi All,

Is it possible to dynamically change the form control properties like (Editable,visible).








Thanks & Regards,
Naidu. ](*,)

Comments

  • krikikriki Member, Moderator Posts: 9,110
    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!


  • AlbertvhAlbertvh Member Posts: 516
    Hi

    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
  • VE024VE024 Member Posts: 17
    Hi,

    my control is table-bound. Is it possible to change the table-bound control properties in dynamic. Is there any alternative solution...



    Thanks,
    Naidu...
  • krikikriki Member, Moderator Posts: 9,110
    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!


  • devu_13devu_13 Member Posts: 101
    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
  • canadian_baconcanadian_bacon Member Posts: 91
    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.
Sign In or Register to comment.