FindObject Function
Enables an object to be addressed at run-time as a string parameter through the object name.
ā¤ā¤Ļā¤žā¤šā¤°ā¤Ŗ ā¤āĨ ā¤˛ā¤ŋā¤, ā¤¨ā¤ŋā¤ŽāĨā¤¨ ā¤ā¤Žā¤žā¤ā¤Ą:
MyObj.Prop1.Command = 5
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
This allows names to be dynamically created at run-time. For example:
"TextEdit1" to "TextEdit5" in a loop to create five control names.
See also: FindPropertyObject
Syntax:
FindObject( ObjName As String )
ā¤ĒāĨā¤°ā¤žā¤ŽāĨā¤ā¤°
ObjName: String that specifies the name of the object that you want to address at run-time.