조건 컨트롤의 속성 값을 가져옵니다.
Syntax
public object GetControlProperty ( string id, string Name )
Parameters
id |
|---|
Type: String
조건 컨트롤의 id
Name |
|---|
Type: String
조건 컨트롤의 속성 이름
Return Value
Type: Object
정상일 경우 : Object
오류 일경우 : null
Example
Sub GetControlProperty()
Set mxmodule = Application.COMAddIns.Item("iMATRIX6.ExcelModule").Object
Dim val As String
val = mxmodule.xapi.GetControlProperty("SelectComboBox1", "LinkedCellValue2")
If val = "U" Then
MsgBox "GetControlProperty Success"
End Sub
1 개의 댓글
MATRIX팀
Sub checkdate()
Set mxmodule = Application.COMAddIns.Item("iMATRIX.ExcelModule").Object
Dim val As String
val = mxmodule.xapi.GetControlProperty("MDatePickerBetween", "ControlValue")
Debug.Print val
If Left(val, 6) > 20301 Then
MsgBox "2023 01년도 보다 큽니다"
End If
End Sub