Page tree
Skip to end of metadata
Go to start of metadata

조건 컨트롤의 속성 값을 가져옵니다.


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
  • No labels

1 Comment

  1. 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