FindPropertyObject Function

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

For example, the following command:


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: FindObject

தொடரமைப்பு:


FindPropertyObject( ObjVar, PropName As String )

அளவுருக்கள்:

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.

பிழையான குறியீடுகள்:

5 செல்லாத செயல்முறை அழைப்பு

12 மாறி வரையறுக்கப்படவில்லை

14 செல்லாத அளவுரு

52 செல்லாத கோப்பு பெயர் அல்லது கோப்பு எண்

57 சாதனம் I/O பிழை

Please support us!