DataWindow.GoTo Method (Typed) | |
Position the data server connected to this data window on a specified record number and update the window based on the change.
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax VIRTUAL METHOD GoTo(
nRecNo AS LONG
) AS LOGIC
public virtual bool GoTo(
int nRecNo
)
Request Example
View SourceParameters
- nRecNo
- Type: Long
The record number to which the data window should be positioned.
Return Value
Type:
Logic
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