Post Reply 
Confused about LOCAL....
11-16-2017, 05:13 PM
Post: #8
RE: Confused about LOCAL....
(11-16-2017 06:04 AM)webmasterpdx Wrote:  Thus, LOCAL A; outside a function, cannot coexist with an existing global, either inside another program file or a true global/system variable. This is why LOCAL A; gives a compile error.
Is my interpretation here correct?

EXPORT makes the object appear as a "global" accessible anywhere directly by name. It will show up in menus/interfaces and behave like something "built in".

If you don't EXPORT it, the object can still be accessed directly by qualifying with program_name.var_name as such. It hasn't been completely hidden and it isn't able to override global objects. It just won't show up in interfaces or be accessible without full qualification EXCEPT to any functions defined in the same source file.

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Confused about LOCAL.... - webmasterpdx - 11-15-2017, 06:19 AM
RE: Confused about LOCAL.... - Dirk.nl - 11-15-2017, 12:18 PM
RE: Confused about LOCAL.... - Carlos295pz - 11-16-2017, 06:43 AM
RE: Confused about LOCAL.... - Carlos295pz - 11-16-2017, 06:55 AM
RE: Confused about LOCAL.... - Tim Wessman - 11-16-2017 05:13 PM
RE: Confused about LOCAL.... - Han - 11-17-2017, 04:04 PM



User(s) browsing this thread: 1 Guest(s)