例: GetProperty メソッド

このスクリプトは、static プロパティ「MIN_VALUE」を java.lang.Integer クラスから取得します。

Dim mySession As JavaSession
Dim myClass As JavaClass
Dim myProperty As JavaProperty
Dim Count As Integer

Set mySession = New JavaSession()

' Get Java "java.lang.Integer" class
Set myClass = mySession.GetClass("java/lang/Integer")

' Get the toString method which takes
' an Integer and returns a string
Set myProperty = myClass.GetProperty("MIN_VALUE")

Print "Property data type is "  _
	& TypeName(myProperty.getValue())
Print "Value of property is " & myProperty.getValue()