### Get Java API Constant Field Values

The list of Constant Field Values can be found here:
http://docs.oracle.com/javase/8/docs/api/constant-values.html
Example Get Field Value
Log(joEvent.InitializeStatic("java.awt.Event").GetField("F1"))
Output:
1008
Example Get Field Value as Sub
'Get the fieldvalue of a Java API class
'Parameter: Classname and Fieldname - IMPORTANT: PARAMETER MUST EXACT MATCH
'Reference: http://docs.oracle.com/javase/8/docs/api/constant-values.html
'Example:
'JavaAPIFieldValue("java.awt.Event", "F1")
'Output: 1008
`Sub JavaAPIFieldValue(classname As String, fieldname As String)
Try
Dim joEvent As JavaObject
Log(joEvent.InitializeStatic(classname).GetField(fieldname))
Catch
Log(LastException.Message)
End Try
End Sub`

Changed: , Category: JavaObject, File: T6C208M1523.htm, ID: 1523