Results 1 to 2 of 2

Thread: Recordset as public, but how ??

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2000
    Posts
    29

    Question

    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 .

  2. #2
    Guest
    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
  •  



Click Here to Expand Forum to Full Width