Example: GetProperty method

This script gets the "MIN_VALUE" static property from the java.lang.Integer class.

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()