DATA declaration

Post Reply
Gilbert
Posts: 74
Joined: Thu Oct 20, 2005 4:30 pm
Location: Canada

DATA declaration

Post by Gilbert »

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,
Gilbert Vaillancourt
turbolog@videotron.ca
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Gilbert
Posts: 74
Joined: Thu Oct 20, 2005 4:30 pm
Location: Canada

Post by Gilbert »

Hi Antonio,


Thanks for the clarifications.



Regards
Gilbert Vaillancourt
turbolog@videotron.ca
Post Reply