|
-
Jan 31st, 2001, 08:59 AM
#1
Thread Starter
Junior Member
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.
VB and Java are great - ja, so ist es !! To my software programming site: http://www.majasoft-games.de .
-
Jan 31st, 2001, 10:31 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|