DATA declaration

DATA declaration

Postby Gilbert » Tue Nov 21, 2006 2:18 am

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
Gilbert
 
Posts: 74
Joined: Thu Oct 20, 2005 4:30 pm
Location: Canada

Postby Antonio Linares » Tue Nov 21, 2006 8:12 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42118
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Gilbert » Tue Nov 21, 2006 2:31 pm

Hi Antonio,


Thanks for the clarifications.



Regards
Gilbert Vaillancourt
turbolog@videotron.ca
Gilbert
 
Posts: 74
Joined: Thu Oct 20, 2005 4:30 pm
Location: Canada


Return to FiveWin for CA-Clipper

Who is online

Users browsing this forum: No registered users and 18 guests