PA_ReadOnly

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

version 2003


PA_ReadOnly (tableNum)

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

PA_ReadWrite, 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