Global Const problem 
Author Message
 Global Const problem

Hi all..

I'm using VB3, win311. I have the following curiosity.

In module SURG.BAS

'Global Const WM_USER = &H400                       'line1
Global Const WM_SCHUPDATE = (WM_USER + 255)     'line2

In module GENERAL.BAS

Global Const WM_USER = &H400                        'line3
Global Const LB_FINDSTRING = (WM_USER + 16)     'line4

As exactly above, line2 gives error 'variable not defined'
Uncommenting line1 causes error on line3 'duplicate definition'
Commenting line3 works perfectly, however since GENERAL.BAS is shared by
several programs, I don't want to make the changes there. I was under
the assumption that a global was a global...

Is there something I'm not aware of?

Thanks,
Michael

--
M


/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *      * *
*/
/* Pursuant to US Code, Title 47, Chapter 5, Subchapter II, Sec. 227, *
*/
/* any and all nonsolicited commercial E-mail sent to this address is *
*/
/* subject to a download and archival fee in the amount of $500 US.   *
*/
/* E-mailing denotes acceptance of these terms.                                       * */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *      * *
*/



Mon, 14 Feb 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Adding global const using expression builder

2. Global Const Assignments

3. Global Const on vacation - what happened?

4. Global compilation limit for local string CONST's

5. Global Const Arrays?

6. Global Const in dll can't be found in .exe

7. Global Const in dll can't be found in .exe

8. Global Const Arrays?

9. Const: Convert a const from Pascal to Basic

10. difference between #const and Const statement

11. Problem : db Const Definitions

12. Problem: Const initialisation from a TextBox

 

 
Powered by phpBB® Forum Software