XabdullahX
asked on
Where do i store output data from module?
As the title says.
Lets say i have this module:
public sub answer(byval number as integer)
number = number + 1
end sub
I want to make something as
if answer = 5 then
'do something
end if
Hope i was clear and you can help
(This is Visual basic.net, dont know if that category exist, so i put it in vbs category)
Lets say i have this module:
public sub answer(byval number as integer)
number = number + 1
end sub
I want to make something as
if answer = 5 then
'do something
end if
Hope i was clear and you can help
(This is Visual basic.net, dont know if that category exist, so i put it in vbs category)
ASKER
This code should be in the module1.vb
public sub answer(byval number as integer)
number = number + 1
My question is, how do i use this:
if answer = 5 then
'do something
end if
on my form1 ?
public sub answer(byval number as integer)
number = number + 1
My question is, how do i use this:
if answer = 5 then
'do something
end if
on my form1 ?
>on my form1 ?
hmmm, can you explain that?
hmmm, can you explain that?
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nice thx
XabdullahX, why B Grade?
ASKER
Because you dont tell me the exact code, only what to do, so i googled public variables a bit and found the solution :)
>Visual Basic Programming, Microsoft Visual Basic.Net
so, all is right...
in regards to the question, where is the problem:
Open in new window