Click or drag to resize

CreateOffline Function

X#
-- todo --
Takes an existing view offline.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax
 FUNCTION CreateOffline(
	ViewName,
	cPath
) AS USUAL CLIPPER
Request Example View Source

Parameters

ViewName (Optional)
Type: Usual
Specifies the name of the existing view to take offline. The database containing the existing view must be open before you can take the existing view offline.
cPath (Optional)
Type: Usual
Specifies the directory in which the offline view is placed and the name of the offline view.

Return Value

Type: Usual
Logical
Remarks
CreateOffline( ) returns a logical true (.T.) if the existing view is successfully taken offline; otherwise false (.F.) is returned.
An offline view is opened with Use. When an offline view is open, you can append records or make changes to records in the offline view. However, you cannot use the Create Trigger, Insert, Pack or Zap commands in an offline view. After making changes to the offline view, you can update the data on the server with your changes by opening the offline view with Use and including the Online clause.
You cannot refresh the contents of an offline view with data from the server until the offline view has been opened with Use and the Online clause.
Use DropOffline( ) to take the offline view back online.
See Also