Hi everyone,
I am trying to use javaobjex to write an application which reads data
from Jbase. Everything works fine except when it comes about
evaluating IType's. The javax documentation is not very explicit about
the use of Jconnection.IType function:
public final JdynArray IType(JdynArray Source)
throws java.rmi.RemoteException,
java.lang.Exception
Specified by:
IType in interface Jconnection
Throws:
java.rmi.RemoteException
java.lang.Exception
My question is what should the in parameter Source contain so that I
get a valid result? Simply creating an JdynArray with the expression
to be evaluated is not enough:
String _itype = "@ID['.',2,1]"
JdynArray arr = JBaseWrap.getInst().get().newJdynArray();
arr.ins(_itype, 1);
String s = arr.toAnsiString();
JdynArray res = jC.IType(arr);
In jBase BASIC in order to evaluate i-type, I have to set some global
variables:
@ID = ID.RECORD
@RECORD = R.RECORD
I.TYPE = "@ID['.',2,1]"
idesc.value = ITYPE(I.TYPE)
Is there a similar way to do it in Java?
Best regards,
George
--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at:
http://groups.google.com/group/jBASE/web/Posting%20Guidelines
IMPORTANT: Type T24: at the start of the subject line for questions specific to
Globus/T24
To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---