How to declare global variables ? 
Author Message
 How to declare global variables ?


writes:

Quote:
>Hello,

>I've a small question about VB 3.00. I cannot declare global variables:
>It tell me the varible isn't declared when compiling.

>Thank in advance,

>--
>+--------------------------------------------------------+

>|Av. des Colleges 52    | Fidonet: 2:301/315.12          |
>|CH-1009 PULLY          |                                |
>|                       |                                |
>+--------------------------------------------------------+

    Declare global variable in modules (*.BAS files) like ;
    Global MyNumber As Integer


Sun, 20 Jul 1997 12:04:37 GMT  
 How to declare global variables ?


JM>I've a small question about VB 3.00. I cannot declare global
JM>variables: It tell me the varible isn't declared when compiling.

Global variables can only be declared in the Declaration section of a
Module, not a Form. Also make sure that you use the keyword 'Global'.


Ian C.    CIS: 100435,3040   Tel/Fax: (+44)(0)1909-773689
---
 * POW 1.2  0028 * I'm so poor, I can't even pay attention!



Mon, 21 Jul 1997 19:07:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to declare global variables ?

2. How do i declare global variables

3. How do i declare global variables

4. How do I declare a static global variable ?

5. declare global variables

6. How do you declare a global variable in the constants module

7. declaring global variables

8. declaring global variables/constants?

9. Declaring Global Variables

10. help: how and where to declare a global variable

11. Cannot assign a variable declared as a string to a variable declared as data type

12. Global Variables / Global Objects

 

 
Powered by phpBB® Forum Software