qwv2z‖

v7jtc‖FindPropertyObject Function

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

AwGGE‖For example, the following command:


MyObj.Prop1.Command = 5

kpkYS‖corresponds to the 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

PsuoC‖This allows names to be dynamically created at run-time. For example:

4ZJCt‖"TextEdit1" to "TextEdit5" in a loop to create five control names.

JDuA7‖See also: FindObject

jBFme‖Syntax:


FindPropertyObject( ObjVar, PropName As String )

kjHF2‖Parameters:

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

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

SEjHR‖Error codes:

5 Invalid procedure call

12 Variable not defined

14 Invalid parameter

52 Invalid file name or file number

57 Device I/O error