IBM Lotus Symphony


FindPropertyObject Function [Runtime]

Enables objects to be addressed at run-time as a string parameter using the object name.

For instance, the command:

MyObj.Prop1.Command = 5

corresponds to the following command block:

Dim ObjVar as Object

Dim ObjProp as Object

ObjName As String = "MyObj"

ObjVar = FindObject( ObjName As String )

PropName As String = "Prop1"

ObjProp = FindPropertyObject( ObjVar, PropName As String )

ObjProp.Command = 5

To dynamically create Names at run-time, use:

"TextEdit1" to TextEdit5" in a loop to create five names.

See also: FindObject

Syntax:

FindPropertyObject( ObjVar, PropName As String )

Parameters:

ObjVar: Object variable that you want to dynamically define at run-time.

PropName: String that specifies the name of the property that you want to address at run-time.

Error Codes

5 Invalid procedure call

12 Variable undefined

14 Invalid parameter

52 Bad file name or number

57 Device I/O error


Product Feedback | Additional Documentation | Trademarks