Let's start with the bigger problem in that you are hard coding user ids. REALLY bad programming. Search the forum for something like "Hide fields for specific users".
As for the VISIBLE property, did you actually give a name to your label box? By default it will be something like <Control30>, not the variable / value it holds.
Thanks, well, the only way where I can find a name form the laben is on properties on "PageNames", on appears the name of the label.
If I want to hide the 'Foreign Trade' label, from Item form, how's the code?
Thanks.
Comments
IF USERID = 'USER' THEN
CurrForm.'Foreign Trade'.VISIBLE(FALSE);
It says to me that doesn't exist "Foreign Trade" variable ("Foreign Trade" it's the name's label). What's the problem, please?.
Thanks for help
As for the VISIBLE property, did you actually give a name to your label box? By default it will be something like <Control30>, not the variable / value it holds.
My Blog - nav.education
If I want to hide the 'Foreign Trade' label, from Item form, how's the code?
Thanks.
Thanks everybody for help.