FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for CA-Clipper DATA declaration
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM

DATA declaration

Posted: Tue Nov 21, 2006 02: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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

DATA declaration

Posted: Tue Nov 21, 2006 08: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
Posts: 74
Joined: Thu Oct 20, 2005 04:30 PM

DATA declaration

Posted: Tue Nov 21, 2006 02:31 PM

Hi Antonio,

Thanks for the clarifications.

Regards

Gilbert Vaillancourt
turbolog@videotron.ca

Continue the discussion