Click or drag to resize

DataWindow.GoTo Method

X#
Position the data server connected to this data window on a specified record number and update the window based on the change.

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.21
Syntax
 VIRTUAL METHOD GoTo(
	nRecNo
) AS USUAL CLIPPER
Request Example View Source

Parameters

nRecNo (Optional)
Type: Usual
The record number to which the data window should be positioned.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
When executed successfully, the data server sends a NotifyRecordChange message to all of its clients, including this data window. DataWindow:GoTo() can fail for many reasons, from a lack of capability in the server to lock conflicts to technical problems, such as network crashes. Use the DataServer:Status property to determine the exact cause of the failure. Note also that DataWindow:GoTo(), like all repositioning operations, is subject to validation—if the current data in the window fails validation, it cannot be written out and the move is refused.
See Also