Aditya,
If your variable is defined as Global (i.e. Global iCounter As Integer)
then it will be available to all other subs and functions in the same
module (i.e. .mb-file). You can also dimension a variable with the
Dim-syntax (Dim iCounter As Integer) OUTSIDE of any sub or function.
This variable will then also be available to all procedures in the
module.
The difference between the Dim and the Global-syntax is that Global
variables are available outside the Mapbasic-application (eg for DDE
purposes), or in other modules of the same project. (A project consists
of a number of MapBasic-modules, linked together through a .mbp-project
file.)

Hope this helps,
Viel Erfolg,
Andreas

.................................................
Andreas Mahn
dds GmbH
Stumpfstr.1 
76131 Karlsruhe
Germany
Tel.: +49 - (0)721 - 9651406
Fax: +49 - (0)721 - 9651419
http://www.dds.ptv.de/

.......................
[EMAIL PROTECTED]

>----------
>Von:   Adi[SMTP:[EMAIL PROTECTED]]
>Gesendet:      Montag, 15. M�rz 1999 11:35
>An:    [EMAIL PROTECTED]
>Betreff:       MI Map Basic
>
>Hello Experts !
>
>Is it possible to use the value assigned to 
>one variable in one procedure  in second procedure also, (like export in C)
>
>Actually I have one global variable, during Sub main I assign value to this
>variable 
>and I want to use the same value in another sub. How it is possible ?
>
>Thanks in advance.
>===================================================
>Aditya 
>Executive (Systems) 
>Information Systems Department
>GCMMF, Anand
>[E-mail me at [EMAIL PROTECTED]]
>===================================================
>----------------------------------------------------------------------
>To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
>"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
>
----------------------------------------------------------------------
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