FindObject Function

개체 이름을 톡해 개체λ₯Ό λŸ°νƒ€μž„μ— λ¬Έμžμ—΄ 맀개 λ³€μˆ˜λ‘œ 지정할 수 있게 ν•©λ‹ˆλ‹€.

예λ₯Ό λ“€μ–΄, λ‹€μŒ λͺ…령은


MyObj.Prop1.Command = 5

λ‹€μŒ λͺ…λ Ή 블둝에 ν•΄λ‹Ήν•©λ‹ˆλ‹€.


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

이것은 이름을 λŸ°νƒ€μž„μ— λ™μ μœΌλ‘œ λ§Œλ“€ 수 있게 ν•©λ‹ˆλ‹€.

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

μ°Έκ³  ν•­λͺ©: FindPropertyObject

ꡬ문:


FindObject( ObjName As String )

맀개 λ³€μˆ˜:

ObjName: λŸ°νƒ€μž„μ— 지정할 개체의 이름을 μ§€μ •ν•˜λŠ” λ¬Έμžμ—΄μž…λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

12 λ³€μˆ˜κ°€ μ§€μ •λ˜μ§€ μ•Šμ•˜μŠ΅λ‹ˆλ‹€.

Please support us!