|
-
Jul 16th, 2004, 10:35 AM
#1
Thread Starter
Member
VB .NET newbie question
Hi all,
I've started developing an application using VB .NET 2003 for handheld PC (sewer inventarisation).
It has been a long time since i used VB (about 10 years) so i need some help.
I have a designed a few forms and some code for it.
However i'm having trouble with the following:
I've made a user data type (structure) and an array from this user data type. When I declare and use them in the form code it works fine but I want to declare the array and the 'current' data type globally. So i can use them in every form. How do I define them global ? Do I have to use a main module and load that first ??? if yes how ?
thx very much
-
Jul 16th, 2004, 10:49 AM
#2
you should look into classes and make a class instead of a UDT
-
Jul 16th, 2004, 01:06 PM
#3
Lively Member
10 years ? VERY VERY LONG TIME FOR COMPUTER THING ! !
You should buy a VB.Net book, ask questions here in the forum.
Why did I say that? very simple, it is easy to learn, especially that is it an OOP (Object Oriented Programming) language, and I think you will learn it easy.
Do you think my life is easy?
Do you think it's good to win?
do you think it's nice to kill?
Do you think learning is a must?
Do you think computers are nothing?
Do you think this post is stupid?
Do ypu think we're really humen?
DO YOU THINK IT'S GOOD TO THINK AT ALL? ? ? ! ! !
-
Jul 17th, 2004, 12:16 AM
#4
To answer directly, simply add a module to your project, and declare the vars there.
To answer indirectly, go for a class, so you can encapsulate your functionality and make life easier for the sewer workers.
PS: Inventarisation isn't even a word!!!
-
Jul 18th, 2004, 12:24 AM
#5
Thread Starter
Member
PS: Inventarisation isn't even a word!!!
Yes it is (DUTCH), but you did understand it didn't you ?
thx
-
Jul 18th, 2004, 03:51 AM
#6
Originally posted by SixFeet6
Yes it is (DUTCH), but you did understand it didn't you ?
Aah, see, dutch is too insignificant to count, even as a language 
No, I didn't really understand it, but I don't think its relevant anyways.
-
Jul 18th, 2004, 08:44 AM
#7
Hyperactive Member
Re: VB .NET newbie question
Originally posted by SixFeet6
Hi all,
I've started developing an application using VB .NET 2003 for handheld PC (sewer inventarisation).
Just out of interest, what sort of work are you involved in? I ask because I'm an urban drainage engineer and I'm always on the look out for new tools/techniques/etc.
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
|