Well,
i ve decided to create a small Jar (not a b4xlib) lib but i think "that is the first time all these years" and never tried again..
Seems easy but when you have to add inline java and someway if use b4xpages turn to complicated at least for me.
What i ve done and what i want to do...
Well I am having a "class" but in class I am having a custom "Type"...
edit: According to this... I can't use type and readb4xobject at a class... ?
1) I ve noticed if having the Type inside the class not working properly... if have it in "Main" works perfect... but in main not finding the time of compiling (so ?)
2) Another thing... using some inline java ---> targeting at the "Me" - but hey! the jar i am trying to compile not a b4xpage.... so is the following going to work right ?
edit: No2 works - the call is right
So I am stuck at (1)... Type not works as i want at my jar lib - any idea ?
i ve decided to create a small Jar (not a b4xlib) lib but i think "that is the first time all these years" and never tried again..
Seems easy but when you have to add inline java and someway if use b4xpages turn to complicated at least for me.
What i ve done and what i want to do...
Well I am having a "class" but in class I am having a custom "Type"...
edit: According to this... I can't use type and readb4xobject at a class... ?
1) I ve noticed if having the Type inside the class not working properly... if have it in "Main" works perfect... but in main not finding the time of compiling (so ?)
B4X:
Sub Class_Globals
Private fx As JFX
Type MyType(TIME1 As Long, aa As String)
....
public sub mytest
Dim mr As MyType
mr.Initialize
...
mr = raf.ReadB4XObject(raf.CurrentPosition)
2) Another thing... using some inline java ---> targeting at the "Me" - but hey! the jar i am trying to compile not a b4xpage.... so is the following going to work right ?
B4X:
NatMe = theMe 'theMe is an object... when call it from any app will be a b4xpage... like Me
NatMe.InitializeNewInstance("b4j.example.mynameofmylib.myjavaclass", Array(Null))
NatMe = NatMe.RunMethod("onevoidsub"...
So I am stuck at (1)... Type not works as i want at my jar lib - any idea ?
Last edited: