Results 1 to 7 of 7

Thread: VB .NET newbie question

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2004
    Posts
    34

    Question 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

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    you should look into classes and make a class instead of a UDT

  3. #3
    Lively Member TLord's Avatar
    Join Date
    Jun 2004
    Posts
    95
    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? ? ? ! ! !

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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!!!

  5. #5

    Thread Starter
    Member
    Join Date
    Jul 2004
    Posts
    34

    Talking

    PS: Inventarisation isn't even a word!!!


    Yes it is (DUTCH), but you did understand it didn't you ?


    thx

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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.

  7. #7
    Hyperactive Member
    Join Date
    May 2004
    Location
    Right here
    Posts
    275

    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
  •  



Click Here to Expand Forum to Full Width