I think the problem is that you have to include "header.def" in
all your modules. At least you have to declare 'global iWinIdMap
as Integer' in every module where you will use it. That said, you
also cannot declare that same variable anywhere else because a
more local declaration will take precedence oover yuor global
definition. In other words, if you define a global variable in a
module, and then declare a local variable in a sub in that same
module, then when your program flow enters that sub, it will use
the local variable instead of the global.

Daniel Budmiger wrote:
> 
> i want to use the same variable in different project files. as i know this
> should be possible with the global variables.
> in my program this does not work.
> the declaration of my subs and the declaration of my variables are stored in
> a special header.def - there is also the code: global iWinIdMap As Integer.
> In the main sub this variable gets the integer value of a special
> map-window. if i show this id from another sub in another project this
> variable does not have the same content.
> has anybody a good idea for a solution or what i am doing wrong?

- Bill Thoen
------------------------------------------------------------
GISnet, 1401 Walnut St., Suite C, Boulder, CO  80302
tel: 303-786-9961, fax: 303-443-4856
mailto:[EMAIL PROTECTED], http://www.ctmap.com/gisnet
------------------------------------------------------------
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to