Invisibilty of fields

Hi,

I’m looking for a method to be able to set the invisiblemode for a field through a natural application.

There are variables that I need to have displayed on a screen for some users, and these same variables at times need to be hidden from other users. I have tried to set the invisiblemode to a variable name in Application Designer but the variable does not get placed in the adapter when I save the layout.

I have tried to set the background and foreground color to be the same for the variable, but if a user highlights the variable with their mouse, they will see the field contents.

I know that I can move spaces to the variable if I have to but it would be nice to be able to set the invisibilty mode synamically for the variable. Is there a way to do this?

Thanks for the help.

Norm