DataBrowser.Use Method | |
Connect the data browser to a data server in a client-server relationship.
Namespace:
VO
Assembly:
VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD Use(
oServer
) AS USUAL CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public virtual Usual Use(
Usual oServer = default
)
Request Example
View SourceParameters
- oServer (Optional)
- Type: Usual
The data server to which this data browser should be connected. If the data browser is already connected to a server, it is disconnected first. If omitted, the data browser is disconnected from the data server.
Return Value
Type:
Usual
TRUE if successful; otherwise, FALSE.
Remarks Tip |
---|
If the browser is used as a browse view of a data window, there is no reason to use this method; the browser is automatically connected to the server of the window it belongs to. |
The DataBrowser:Use() method connects browser columns with fields of the data server based on matching names. Any column that does not have an explicitly provided field specification and hyperlabel inherits the FieldSpec and HyperLabel objects from its data server field.
If the data browser does not have any columns, the DataBrowser:Use() method automatically creates a layout with columns for all the fields in the server.
DataBrowser:Use() also registers the data browser as a client of the server with the DataServer:RegisterClient() method.
See Also