VB.net program without using classes?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?d2lubGlu?=

    #1

    VB.net program without using classes?

    Hello

    1) I agree that useing classes is the best way to use VB.net. The question
    is how do you write a VB program without using classes?

    2) For my own edification where can I see an actual "full blown" VB .net
    program that doesn't use classes?
  • Michel Posseth  [MCP]

    #2
    Re: VB.net program without using classes?

    AFAIK impossible as even a module is nothing else as a class with all
    members declared shared

    hth

    Michel



    "winlin" <winlin@verizon .comschreef in bericht
    news:8176690B-E1FC-4EA4-87B9-FE539B1C211F@mi crosoft.com...
    Hello
    >
    1) I agree that useing classes is the best way to use VB.net. The
    question
    is how do you write a VB program without using classes?
    >
    2) For my own edification where can I see an actual "full blown" VB .net
    program that doesn't use classes?

    Comment

    • Cor Ligthert[MVP]

      #3
      Re: VB.net program without using classes?

      Winlin,

      If you use shared classes (or in other words modules) you are in fact
      programming without objects. All code is placed on the stack. It is not
      withouth classes because the description of the objects and shared classes
      is still in a class; But because many people have problems in the diference
      between a class and an object is this maybe your answer.

      Cor

      "winlin" <winlin@verizon .comschreef in bericht
      news:8176690B-E1FC-4EA4-87B9-FE539B1C211F@mi crosoft.com...
      Hello
      >
      1) I agree that useing classes is the best way to use VB.net. The
      question
      is how do you write a VB program without using classes?
      >
      2) For my own edification where can I see an actual "full blown" VB .net
      program that doesn't use classes?

      Comment

      Working...