mdlIObject DeleteRecord
Deletes one or multiple table entries.
Syntax
mdlIObject_handle DeleteRecord idx
Application
MotionView Tcl Modify
Description
This command deletes one or multiple table entries. The table index gets updated once a particular table is deleted.
Inputs
- idx
- The index of the table to be deleted.
Example
To delete a table of a known
index:
hwi OpenStack
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set activePageNum [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $activePageNum
set activeWinNum [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $activeWinNum
myWindowName GetClientHandle myClientName
myClientName GetModelHandle myModelName
myModelName GetChildHandle tab table_event
tab GetChildHandle hand tbl
hand DeleteRecord 2
myModelName Evaluate
hand DeleteRecord 1
myModelName Evaluate
hand ReleaseHandle
tab ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack
Errors
Returns 0 if successful, otherwise an error code.