I use UniObjects with .net but this may be the problem.
Should this:
UniString cus = customerFile.read(rec);
Be This:
UniDynArray cus = customerFile.read(rec);
Norman Bauer wrote:
Steve, thanks for the sugestion.I was fairly sure that I was making it
to UV, but just to be sure I took your suggestion, altered it to use
unicommand and did a "SORT VOC SAMPLE 20" which gave me the desired
results.
Norm
On Tue, Feb 15, 2011 at 12:31 PM, Steve Romanow <[email protected]> wrote:
Can you try something simpler like a "COUNT VOC" to see if you are
connecting fine?
On 2/15/2011 12:25 PM, Norman Bauer wrote:
import asjava.uniclientlibs.UniString;
import asjava.uniobjects.*;
Ok, i started playing around with UOJ, going through the docs and
looking at some examples from PickWiki. Below I am expecting the
Customer record for Customer AA to display on the screen, but I get
nothing. Where have I gone wrong (other than using UOJ..lol )
Thanks,
Norm
public class U2Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
UniJava uj = new UniJava();
try{
// create a new instance of the session and use my
credentials to logon
UniSession uSession = uj.openSession();
uSession.connect( yada, yada, yada, yada);
// create an instance of customerFile that opens
the CUSFLE
UniFile customerFile = uSession.open("CUSTOMERS");
String rec = "AA";
// read the file into memory
UniString cus = customerFile.read(rec);
System.out.println( "Customer Record: " );
System.out.println(cus);
//close the file and close the connection, good
bye!
customerFile.close();
uSession.disconnect();
}
catch (UniSessionException e){
System.out.println(e.getExtendedMessage());
}
catch (UniFileException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users
--
------------------------------------------------------------------------
Jeff Schasny - Denver, Co, USA
jschasny at gmail dot com
------------------------------------------------------------------------
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users