
Call module functions from outside of module?
Quote:
>You should be able to use the function just the way you use it when it's
>included in the form module, as long as it's not declared as a private
>function .. as in
>if isLoaded("somefrmName") then
> do something
>else
> do something else
>end if
Thank you very much for your helpful response... especially for e-mailing me
it as well! I knew it would be something stupid like that. I kept trying
to find out how to add the module name before the function name to tell the
system which module to look in to find the function. The simpler method
obviously works.
This brings up another question: I can place a public IsLoaded function in
one module in my database. I can also place a public IsLoaded function,
with the same parameters, in a different module in the same database. If I
use IsLoaded("someformname") in a form I then am told that I'm using an
"ambivalent function name"... which I agree with. How could I tell it which
module to look in to if I really needed to?
Quote:
>So, would you tell us, or at least me, what you use this function for?
We have a main form which is opened automatically when the database is
opened. This is a "switchboard" style form with a bunch of buttons on it.
Each button opens a relevant form. For example if you click on the
"Companies" button it opens the "Companies" form. When each button opens
the relevant form it also places the main form as invisible. It is still
loaded but invisible. Each form which is called by the switchboard form
therefore verifies, in its OnClose method if the main form is loaded. If
the main form is loaded it makes it visible upon closing... if it isn't it
does not try and reference it which would create an error.
You get the idea...
Thank you again for your valuable assistance.
-----
Please reply via EMail *AND* Newsgroup if possible.
Paris, FRANCE Web: http://www.erb.com