TelKel81 Active Member Licensed User Longtime User Jan 8, 2023 #1 I tried with both but to no avail... I know how to do it with class modules but the same approach doesn't work in code modules (NoSuchFieldException) despite that I can successfully iterate through the fields of the code module with the getFields method.
I tried with both but to no avail... I know how to do it with class modules but the same approach doesn't work in code modules (NoSuchFieldException) despite that I can successfully iterate through the fields of the code module with the getFields method.
teddybear Well-Known Member Licensed User Jan 8, 2023 #2 Martin D. said: I tried with both but to no avail... I know how to do it with class modules but the same approach doesn't work in code modules (NoSuchFieldException) despite that I can successfully iterate through the fields of the code module with the getFields method. Click to expand... Code module is also a class. To JavaObjetc you can get field by jo.GetField("FldName") To Jreflection you can get field by jr.GetStaticField("yourcodemoduleclass", "FldName") Last edited: Jan 10, 2023 Upvote 0
Martin D. said: I tried with both but to no avail... I know how to do it with class modules but the same approach doesn't work in code modules (NoSuchFieldException) despite that I can successfully iterate through the fields of the code module with the getFields method. Click to expand... Code module is also a class. To JavaObjetc you can get field by jo.GetField("FldName") To Jreflection you can get field by jr.GetStaticField("yourcodemoduleclass", "FldName")