Article ID: 156171
Article Last Modified on 9/30/2003
In the Init event code for the data environment, call the data environment's OpenTables method:
THIS.OpenTables
In the Load event code for the form, call the data environment's OpenTables method:
THISFORM.Dataenvironment.OpenTables
In the Init event code for the cursor, set the CursorSource property to
the appropriate view, based on the setting of the user-defined form
property.
For example, the following code checks the form property and accordingly
sets the CursorSource to a remote or local view:
IF THISFORM.UseRemote = .T.
THIS.CursorSource = RemoteView
ELSE
THIS.CursorSource = LocalView
ENDIF
In the OpenTables method code for the data environment, set the
CursorSource property of the cursor to the appropriate view, based on
the setting of the user-defined form property.
For example, the following code checks the form property and accordingly
sets the CursorSource to a remote or local view:
IF THISFORM.UseRemote = .T.
THIS.Cursor1.CursorSource = RemoteView
ELSE
THIS.Cursor1.CursorSource = LocalView
ENDIF
Additional query words: kbdsd VFoxWin
Keywords: KB156171