Hi!
I need something that look likes to #define in VC:
#define DEF1 some_variable
How can I write this in VB?
Thanks!
Alexandra
Printable View
Hi!
I need something that look likes to #define in VC:
#define DEF1 some_variable
How can I write this in VB?
Thanks!
Alexandra
VB does NOT have a precompiler, but you can use the
#CONST DEF1 = some_value
#if DEF1 = some_value then
..
#end if
syntax.
Hi!
The idea is to change this code:
dim x
dim val1
x = val1
if x = ... then
'...
endif
to
' x not declared
dim val1
x = val1
if x = ... then
endif
I don't want to declare variable twice!
I the C-code I have lot of defines!(It look likes
[vccode]
#define factorsblender cnt.PIDFctors[10]
#define factorschargeblender cnt.PIDFctors[16]
#define factorsplc5 cnt.PIDFctors[94]
...
[/vccode]
It explain me what a data is.
Have you any idea?
Thanks!