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. please help

please help

Scheduled Pinned Locked Moved Visual Basic
helpquestion
6 Posts 4 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.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    is there any diffrence between procedure and function?

    Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

    K N 2 Replies Last reply
    0
    • S Sonia Gupta

      is there any diffrence between procedure and function?

      Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

      K Offline
      K Offline
      kubben
      wrote on last edited by
      #2

      Yes a Sub doesn't return a value and a Function returns a value. Ben

      S 1 Reply Last reply
      0
      • S Sonia Gupta

        is there any diffrence between procedure and function?

        Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

        N Offline
        N Offline
        ninkk
        wrote on last edited by
        #3

        Yeap, Procedures executes the commands and returns nothing, on the other hand, function should always return something(integer or string, etc), to the point that they were called from.

        S 1 Reply Last reply
        0
        • K kubben

          Yes a Sub doesn't return a value and a Function returns a value. Ben

          S Offline
          S Offline
          Sonia Gupta
          wrote on last edited by
          #4

          u mean procedure and sub are synonyms?

          Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

          K 1 Reply Last reply
          0
          • S Sonia Gupta

            u mean procedure and sub are synonyms?

            Soniagupta1@yahoo.co.in Yahoo Messenger Id = soniagupta1

            K Offline
            K Offline
            kubben
            wrote on last edited by
            #5

            If you are writing vb.net code you only have sub and function. Ben

            1 Reply Last reply
            0
            • N ninkk

              Yeap, Procedures executes the commands and returns nothing, on the other hand, function should always return something(integer or string, etc), to the point that they were called from.

              S Offline
              S Offline
              Salman Sheikh
              wrote on last edited by
              #6

              better to say is that as we have "void" return type of a function i.e. a function that doesn't return a value in many languages like C++, C# or Java in visual basic we have sub for this purpose. i.e. sub is a function with void void return type :)

              Salman Sheikh

              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