|
-
Jan 24th, 2005, 11:11 AM
#1
Thread Starter
Lively Member
Calling a variable from another form...[Resolved]
Ok, I give up...how do you call a variable from another form? It was easier in previous versions to do a globalvar but I can't figure it out. From what i've read in the searches here in the forum it's got something to do with classes and calling something?? Can someone explain to me in simple terms with examples if you can
i'm using vb.net version 2003
thanks people
Kidd
Last edited by TheKidd554; Jan 28th, 2005 at 08:38 AM.
-
Jan 24th, 2005, 11:55 AM
#2
Re: Calling a variable from another form...
search the forum (select the first visual basic.net entry in the forum listing to only search VB.NET forum) and you will find many results as this has been asked many times...
-
Jan 25th, 2005, 05:41 AM
#3
New Member
Re: Calling a variable from another form...
respected sir we need coding of datadase connectiviy
-
Jan 26th, 2005, 10:58 PM
#4
Thread Starter
Lively Member
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:
Public Share carriername As String
then call it from where ever by....
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|