Results 1 to 2 of 2

Thread: Global Variables

  1. #1

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943

    Exclamation

    I am making a web browser that holds all its info in the registry (passwords, preferances, etc etc....) It supports different users and i need to load the info from the registry (i can do this) write it to a variable (can do this too), then make write it to another variable that says what user it is (ie. User1, user2, user3), this i cannot do because you can not put the registry code in a module, and i need to know how to share the variable throughout the program.
    Thank you,
    Eric

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

    <?>

    You can declare the variable in the bas module and then you can fill it and access it from anywhere

    Bas Module:
    Public MyVar as string

    Form1
    MyVar = myregistery settings

    Form2
    text1 = myVar

    No Problems
    "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