PA_ReadWrite

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_ReadWrite (tableNum)

ParameterTypeDescription
tableNumshortTable 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

PA_ReadOnly, READ ONLY.

Error Handling

Use PA_GetLastError to see if an error occurred (bad table number).


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next