Results 1 to 7 of 7

Thread: Help with Modules

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Posts
    9

    Help with Modules

    Any one thats willing to help me with making a module, i fairly new to vb, or if you can't help me maybe give me a tutorial site??? thanks

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    A module is nothing but code. What is it exactly that you are having trouble with?
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Posts
    9
    i know what it is, i just want to know what i have to declare and where i get the info etc, like do i use API or what?

  4. #4
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    You just declare functions in modules like you would do in any other object:

    VB Code:
    1. Public Pub_Var As Long
    2. Public Pub_Str As String
    3. Const xx As String = "QWERTY"
    4.  
    5. Public Function foo(ByVal Param1 As Long, Param2 As IMethodInterface) As Long
    6.     MsgBox Param2.TextString
    7. End Function


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  5. #5
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    You COULD use APIs in modules, but the APIs are never REQUIRED in VB . Well, they really are not unless if you need "extended capabilities."


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  6. #6

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Posts
    9
    i don't know what i have to declare i don't know how to find what i have to declare, so what i'm asking is how do i find what i have to declare?

  7. #7
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    It all depends what you want to do. Search this forum for what you want to do, and you'll probably find what you are looking for. And if you don't, try msdn.microsoft.com
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

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