SUB in Main is local ?

Hubert Brandel

Active Member
Licensed User
Longtime User
Hi,

I have build some SUBs in my main file and tried to access them from
other activity windows. But

MAIN. => will only list the global variables, are the SUBs local ?

Does only code modules can share the SUBs ?
 

klaus

Expert
Licensed User
Longtime User
All subs in an Activity module, like Main, are local and belong to this activity!
If you want to have Subs accessible from other activities you need code modules. But these routine cannot contain any direct reference to any activity view.
But you can transmit view refences to routines in code modules like in the Charts module.

Best regards.
 
Upvote 0
Top