UpdateCursorItem Method
Description
Updates data held in the specified cursor to reflect any relevant changes in the open item.
Syntax
Visual Basic |
---|
Public Function UpdateCursorItem( _ ByVal cursor As String _ ) As Integer |
Parameters
- cursor
- The named cursor to update
Remarks
If an item is open in more than one cursor then UpdateCursorItem should be called for each cursor containing the item.
If an item is opened and edited whilst moving through a cursor then UpdateCursorItem must be called to prevent disruption to the looping move operation.
Available: GEO D D OD OM SISpy
Group:
Example
sis.OpenCursorItem ("MyCursor")
sis.SetStr(SIS_OT_CURITEM, 0, "UPRN$", "123456")
sis.UpdateCursorItem ("MyCursor")
Having opened an item from MyCursor’s current row and changed an attribute, UpdateCursorItem is called to ensure the data in MyCursor for this item matches the new data value on the item.