JavaScript Editor js editor     Web development 



Main Page

When you create a view, the view inherits property settings from the environment cursor, which is the cursor 0 in the current data session. You can change the settings for these properties using the CURSORSETPROP(В ) function with 0 as the cursor number. After the view has been created and is stored in a database, you can change view properties with the DBSETPROP(В ) function. The changes you make to view properties in a database are stored persistently in the database.

When you use a view, the property settings stored for the view in the database are inherited by the active view cursor. You can change these properties on the active cursor using the CURSORSETPROP(В ) function for the view cursor. Changes you make with the CURSORSETPROP(В ) function are temporary. The temporary settings for the active view disappear when you close the view; the temporary settings for cursor 0 go away when you close the Visual FoxPro session.

Connections inherit properties in a similar fashion. Default properties for connection 0 are inherited when you create and store a named connection in a database. You can change these default property settings for connection 0 with the SQLSETPROP(В ) function. After the connection has been created and is stored in a database, you can change connection properties with the DBSETPROP(В ) function. When you use a connection, the property settings stored for the connection in the database are inherited by the active connection. You can change these properties on the active connection using the SQLSETPROP(В ) function for the connection handle.

Both views and connections can use a named ODBC data source. If you use an ODBC data source in a view, the connection inherits properties from the session defaults.

The following diagram illustrates property inheritance for views and connections. The gray lines represent the flow of property inheritance; the black lines represent Visual FoxPro commands.

FoxProSettings graphic

See Also



JavaScript Editor js editor     Web development 

©

©©