-
Hi,
I want to make my Recordset (adoRecHaupt) as public.
In Visual Basic I use "public adoRecHaupt as new ADODB.Recordset". But how can I do it under Java ? I want to use the Recordset (Connection, too) over all the code. At this time I use "Recordset adoRecHaupt = new Recordset();" but this I call from (in) "public frmVFV3_1() {".
What can I do. Does anybody have a (little) code-example for me ??
Thanx, MAJASOFT.
-
If "Recordset" is a class in Java (which I cannot find, but maybe this is a custom class), you would simply declare it as "public":
public Recordset adoRecHaupt = new Recordset();
Perhaps your real question is, "How do I use databases in Java?".
In that case:
http://developer.java.sun.com/develo...ning/Database/
Actually, if you didn't know how to make your class public, you might need this:
http://java.sun.com/docs/books/tutorial/
http://java.sun.com/docs/books/tutor...classdecl.html
hmmm, looks like the new forum shortens long urls in the post, but keeps the correct url as a hyperlink.