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