>>Is there any way to make a table read-only after is has been opened? (Trying to find an easy and robust way to make all controls bound to a table disabled)
>
>Thisform.Dataenvironment.CursorX.ReadOnly=.T.
>or
>USE ... NOUPDATE
The ReadOnly property of a cursor is Read-Only at run time and Read-Write at design time. As for USE ... NOUPDATE, this would be a good idea if I wanted to close and re-open the table everytime I want to change its read-only state. Unfortunately, this is not the case.
To solve the problem, I was forced to implement, as Michel did, a method to recursively disable all control on a form bound to a field in that table
Best regards,
Gino M.