Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Class

Class

Scheduled Pinned Locked Moved Visual Basic
questionhelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    momooomooomomo
    wrote on last edited by
    #1

    How do class work? a simple question for you maybe but its hard for me to understand... pls i need ur help

    nothing is impossible.....

    C 1 Reply Last reply
    0
    • M momooomooomomo

      How do class work? a simple question for you maybe but its hard for me to understand... pls i need ur help

      nothing is impossible.....

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I have no idea what you're asking.  How do you mean ? A class represents a unit of operation.  Once you have a class, you can create an instance of that class ( or as many as you like ), and use it's methods to perform the operations that class defines, access it's properties to get access to the data that class contains, etc. If that doesn't help, then you need to ask a more specific question.  From what angle are you asking ? Have you done any coding yet ?

      Christian Graus - C++ MVP

      M 1 Reply Last reply
      0
      • C Christian Graus

        I have no idea what you're asking.  How do you mean ? A class represents a unit of operation.  Once you have a class, you can create an instance of that class ( or as many as you like ), and use it's methods to perform the operations that class defines, access it's properties to get access to the data that class contains, etc. If that doesn't help, then you need to ask a more specific question.  From what angle are you asking ? Have you done any coding yet ?

        Christian Graus - C++ MVP

        M Offline
        M Offline
        momooomooomomo
        wrote on last edited by
        #3

        i already made one class but on how to use it from the other form i dont know.... my simple class is just to get the sum of two integers. will you help a simple mind like me to understand how to use class?

        nothing is impossible.....

        C 1 Reply Last reply
        0
        • M momooomooomomo

          i already made one class but on how to use it from the other form i dont know.... my simple class is just to get the sum of two integers. will you help a simple mind like me to understand how to use class?

          nothing is impossible.....

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          I guess the important question is - what resources do you have that you will be able to proceed once I tell you ? Sounds like you need to buy a book and work through it. If your class is called wotsit, then you do this: Dim w as wotsit = new wotsit() ( because VB syntax is nasty. You can call it whatever you like ) w.CallAnyMethodHere

          Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

          M 1 Reply Last reply
          0
          • C Christian Graus

            I guess the important question is - what resources do you have that you will be able to proceed once I tell you ? Sounds like you need to buy a book and work through it. If your class is called wotsit, then you do this: Dim w as wotsit = new wotsit() ( because VB syntax is nasty. You can call it whatever you like ) w.CallAnyMethodHere

            Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

            M Offline
            M Offline
            momooomooomomo
            wrote on last edited by
            #5

            i really appreciate your quick response... even though it sound really 'dumb' question, but you really do me a very big favor... thanks, i used your syntax and it really work.. :-D

            nothing is impossible.....

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups