![]() |
Using the ActiveX to EJB bridge, access to Java fields has the same case sensitivity issue that it has when invoking methods. Field names must use the same case as the Java field syntax.
Visual Basic has the same problem with unsolicitied case changing on fields as it does with methods. (For more information about this problem, see ActiveX to EJB bridge, calling Java methods. You may need to use the CallByName() function to set a field in the same way that you would call a method in some cases. For Fields, you use VBLet for primitive types and VBSet for Objects. For example:
o.MyField = 123 'Incorrect... CallByName(o, "MyField", vbLet, 123) 'Correct...or in VBScript:
o.MyField = 123 'Incorrect... Eval("o.myField = 123") 'Correct...
Related concepts... | |
How ActiveX programs use the ActiveX to EJB bridge | |
ActiveX to EJB bridge, calling Java methods | |
ActiveX to EJB bridge, good programming guidelines | |