If you want the users to be able to tab through the fields then use readonly but if you want the users to not be able to access the fields at all then use enabled = .f. instead. Readonly can be frustrating because it allows the users to tab through fields and when a user attempts to type in a readonly field they receive that pesky beep and default message of The control is readonly unless you change it using SET NOTIFY OFF, etc.
>hi all. for security purpose when certain group of users log in, i want to set everything on all forms as readonly.
>i am thinking of creating a custom class and put it on the form. now in the init of this class, i will loops through each and every control on th form and mark them as readonly or enable=.f. . the code has to be recursive so that if there is a pageframe or container object on form , it goes and loops through all objects on pageframe/container too.
>
>i am wondering though if this is the correct idea and also if there is some already available such class out there.
>
>thanks all for help in advance.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"