It should have said:
In module 1....
Public price1 as String
Sub getPrice1
'do this to get price 1
price1 = "100"
MsgBox(price1)
End Sub
in the event procedure of the form
Sub getPricing
getprice1
MsgBox(price1)
End Sub
The question is why the value shows in the message box of the sub in the
module but not in the message box of the form.
Armin and Solex the headers for your response came on my server but not the
text of your message. Please repost and thanks.
"EricJ" <ericRéMo**@ThiSomnipack.be> wrote in message
news:3f*********************@reader5.news.skynet.b e...
ehh
Public pricing1 as String
MsgBox(price1)
have a look at the names
and try giving it a value
in your module :
Public price1 As New String("test")
"scorpion53061" <sc****************************@yahoo.com> wrote in
message news:u9**************@tk2msftngp13.phx.gbl... Is driving me nuts
In module 1....
Public pricing1 as String
Sub getPrice1
'do this to get price 1
price1 = "100"
MsgBox(price1)
End Sub
in the event procedure of the form
Sub getPricing
MsgBox(price1)
End Sub
The message box in the module produces the string.
The message box in the event procedure shows it is empty.
I also have noticed when I try to format a string not declared in a
module it says "object reference to a non shared member requires an object
reference."
I tried sharing the sub in teh module and it wont allow that.
Modules are all about sharing......
anyone have ideas?