Click to See Complete Forum and Search --> : Define
Lev FatMan
June 14th, 2001, 04:32 AM
Is there anything in Visual Basic equal with its behaviour or functionality to C++ #define ???
If so what is it and how do I use it. same as in C++ ??
FatMan
Clearcode
June 14th, 2001, 04:44 AM
#define WM_MYMSG 0x30
is
public Conts WM_MYMSG = &H30
Is this what you mean?
HTH,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Clearcode
June 14th, 2001, 04:44 AM
#define WM_MYMSG 0x30
is
public Const WM_MYMSG = &H30
Is this what you mean?
HTH,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Lev FatMan
June 14th, 2001, 05:17 AM
I mean for example:
#define _VB_APPLICATION_
...
#ifdef _VB_APPLICATION_
...
#else
...
#endif
I mean defining flags for the compiler. and not just defining some constant object.
FatMan
Clearcode
June 14th, 2001, 05:24 AM
Absolutely - use:
#IF VB_APPLICATION = 1 then
#else
#End IF
And then set the compiler option in the "Conditional compiler options" text box on the "Make" tab on the project properties screen.
HTH,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.