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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Add module

Add module

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 3 Posters 1 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.
  • L Offline
    L Offline
    lionking30685
    wrote on last edited by
    #1

    I have some modules. And i add them into my project. I want to use some functions in them. How can i call any functions which i want?

    C R 2 Replies Last reply
    0
    • L lionking30685

      I have some modules. And i add them into my project. I want to use some functions in them. How can i call any functions which i want?

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

      Generally by creating an instance of the class in the module that impliments them

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • L lionking30685

        I have some modules. And i add them into my project. I want to use some functions in them. How can i call any functions which i want?

        R Offline
        R Offline
        ReactiveX
        wrote on last edited by
        #3

        If your module functions are static (or Shared) in VB, just call the name of the class and execute the function. If not, then create the instance of the object using the New keyword. ( Dim myObj As New ModuleObject() )

        Daniel Minnaar Lead Software Developer

        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