PDA

View Full Version : VB - Module help



Syntax-Error
25-10-03, 16:59
Ok.. i havnt use modules for a lOOONG time.. and i cant remember how to call them

Anyone be nice and help me out there?

VoxteX
25-10-03, 17:49
Call Function (inside the module)

Should be defined inside the module...something like

Public Function Example(blah as string, blah as integer)
blah
blah
End Function



Then to call it type "Call Example"

Should work...

Syntax-Error
25-10-03, 18:07
No no

i mean how do i call another module?

(btw update 24% complete and 1460 lines of code so far)

juvestar15
25-10-03, 18:32
Call another module inside a module?

Try puting the module name at the front of the function in the other module.

eg. module1.example()

FBI
25-10-03, 18:46
Originally posted by juvestar15
Call another module inside a module?

Try puting the module name at the front of the function in the other module.

eg. module1.example()

Yup, that should do it.

FBI