Hi All,
Can someone tell me the difference between:
DATA nValue AS NUMERIC
and:
DATA nValue
Also, if I want to declare a DATA variable and initialize it at declaration.
Can I use:
DATA nValue INIT 0
or I must use:
DATA nValue AS NUMERIC INIT 0
Regards,
DATA declaration
DATA declaration
Gilbert Vaillancourt
turbolog@videotron.ca
turbolog@videotron.ca
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Gilbert,
> DATA nValue AS NUMERIC
The DATA can only hold a number value.
> DATA nValue
The DATA can hold any type value.
> DATA nValue INIT 0
The DATA can hold any type and it will be initialized with zero.
> DATA nValue AS NUMERIC INIT 0
The DATA can only hold a number and it will be initalized with zero.
> DATA nValue AS NUMERIC
The DATA can only hold a number value.
> DATA nValue
The DATA can hold any type value.
> DATA nValue INIT 0
The DATA can hold any type and it will be initialized with zero.
> DATA nValue AS NUMERIC INIT 0
The DATA can only hold a number and it will be initalized with zero.