Results 1 to 4 of 4

Thread: Calling a variable from another form...[Resolved]

Hybrid View

  1. #1
    New Member
    Join Date
    Jan 2005
    Location
    India
    Posts
    1

    Re: Calling a variable from another form...

    respected sir we need coding of datadase connectiviy

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Dec 2004
    Posts
    69

    Re: Calling a variable from another form...

    Ok after searchin for my 3rd day on here I still couldn't find a complete answer so I started to figure it out on my own. Ya I found articles on it but never got a complete answer. Threads seem to go off on a tangent so if anyone reads this, this is how ya do it. Global variable...as alot of peeps say on here 'not good practice' but here goes....
    Create a new class from the 'Project menu'... 'Add class' and call it w/e ya want like 'clsglobal' and declare your variable in there....for me it was...
    VB Code:
    1. Public Share carriername As String

    then call it from where ever by....
    VB Code:
    1. clsglobal.carriername
    from anywhere in the project.

    All the power to ya peeps....

    TheKidd

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