GetObjectNameForId
Returns the name of object for given index
GetObjectNameForId(ByVal ObjectId As Long,
ByVal ObjectType As String,
ByRef ObjectName As String) As Long
Parameters
In/out |
Name |
Data type |
Description |
In |
ObjectId |
Long |
Index of object whose name is to be known |
In |
ObjectType |
String |
Type of object whose name is to be known |
Out |
ObjectName |
String |
Name of object as return parameter |
Description
This function is used in WhiteHall and returns the name of object corresponding to the Index and type of object passed
Return value
Name |
Description |
NG_SUCCESS |
In case of success |
-3 |
Cabinet not connected |
Example
Dim ObjectId As Long
Dim ObjectType As String
Dim ObjectName As String
ObjectId = 49
ObjectType = “F”
RetVal=gPDb(miCurCabId).GetObjectNameForId(ObjectId,ObjectType,ObjectName)
if lRetVal <> NG_SUCCESS Then
MsgBox gPDb(miCurCabId).ErrDescription, vbInformation
Screen.MousePointer = vbNormal
Endif