My problem (Programming ones) !!
I think it is to do with the fact that I am passing a string to a procedure within the module that my private variable is located and technically not naming it within the procedure (If that makes sense).
Something like
Module 1
Call Myprocedure(Mystring)
Module 2
Private Mystringhere as string
Sub Myprocedure(Mystringhere)
msgbox Mystringhere
end sub
Any body else have any input with this...
steve
Re: My problem (Programming ones) !!
you are partly right.
When U have a module scope variable Mystringhere and than U declare
Sub Myprocedure(Mystringhere)
msgbox Mystringhere
End sub
the msgbox doesn't affect the module variable, but the local one. I want to say that in module 2 U have two different variables with the same name. As far as I know all calls to the variable's name in the procedure call the local variable.
But I think that's not the reason of your problem.
Your Myprocedure procedure is private for the module (I guess private is by default, but I'm not sure) and that's why it's invisible in another module.
When U declare
PUBLIC Sub Myprocedure(Mystringhere)
msgbox Mystringhere
End sub
should it work properly (I hope).
Not only variables can be public or private.