|
![]() |
![]() |
version 2003
PA_ReadOnly (tableNum)
Parameter | Type | Description | |
tableNum | short | → | Table number |
Description
The routine
PA_ReadOnly
works like the 4th Dimension
READ ONLY
command: it changes the state of table number
tableNum
to read only for the process in which it is called.
Unlike the 4D command, you can't change the state of all the tables in one call (this can be done when using the syntax
READ ONLY(*)
).
A plug-in should not change the read-write status of a table; the 4th Dimension developer would not approve. However, if running within its own external process, it should set the access mode of all the tables to read-only.
Example
Setting all tables to read only.
for(i = 1; i <= PA_CountTables(); i++)
PA_ReadOnly(i);
See Also
Error Handling
Use
PA_GetLastError
to see if an error occurred (bad table number).