Results 1 to 4 of 4

Thread: Variables

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Question

    I have like 3 different forms and I have 2 variables that I want to be accessible from all forms. How do I do that?!?!?
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    put your variable in a bas module
    and declare it public

    Public MyVar as String
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879
    thanks
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>



    if you want to access controls your do it this way.

    form1.text1.text = form2.text4.text

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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