Any method to do that?

Declare haha[0] won't work...

--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.23.11
^ ^ 19:47:01 up 1:43 1 user load average: 0.06 0.08 0.04
ºî ´© (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/

Re: Create array of zero length by Bernhard

Bernhard
Mon Dec 17 06:17:15 CST 2007

Man-wai Chang ToDie schrieb:

> Any method to do that?
No way.
But you could use a collection object with no elements

Regards
Bernhard Sander

Re: Create array of zero length by Jan

Jan
Mon Dec 17 06:23:15 CST 2007

sorry, you are in VFP, not in Clipper.
Empty array is one of things that I miss in VFP.

Man-wai Chang ToDie napsal(a):
> Any method to do that?
>=20
> Declare haha[0] won't work...
>=20

--=20
Jan Bucek
17. listopadu 2657
544 01 Dvu*r Kra'love' n. L.
www.bucek.info

Re: Create array of zero length by Steve

Steve
Mon Dec 17 07:49:31 CST 2007

"Man-wai Chang ToDie" <toylet.toylet@gmail.com> wrote in message
news:OHzE3KKQIHA.2268@TK2MSFTNGP02.phx.gbl...
>
> Any method to do that?
>
> Declare haha[0] won't work...

If you are trying to tell if an array has been used yet, my VFP approach
is usually:

IF EMPTY( haha[1] )

This doesn't work, of course, if you're storing data in it which might
come back as empty, but there are other ways as well, of course, e.g.,
checking the length of the array via ALEN().

-S-



Re: Create array of zero length by Krister

Krister
Mon Dec 17 08:40:37 CST 2007

No - but in many situations you can use a cursor instead.


"Man-wai Chang ToDie" <toylet.toylet@gmail.com> skrev i meddelandet
news:OHzE3KKQIHA.2268@TK2MSFTNGP02.phx.gbl...
>
> Any method to do that?
>
> Declare haha[0] won't work...
>
> --
> @~@ Might, Courage, Vision, SINCERITY.
> / v \ Simplicity is Beauty! May the Force and Farce be with you!
> /( _ )\ (Xubuntu 7.04) Linux 2.6.23.11
> ^ ^ 19:47:01 up 1:43 1 user load average: 0.06 0.08 0.04
> ºî ´© (CSSA):
> http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/


Re: Create array of zero length by Man-wai

Man-wai
Mon Dec 17 22:57:29 CST 2007

Man-wai Chang ToDie wrote:
> Any method to do that?
>
> Declare haha[0] won't work...
>

Thanks to all.

--
@~@ Might, Courage, Vision, SINCERITY.
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Xubuntu 7.04) Linux 2.6.23.11
^ ^ 12:57:01 up 11 min 1 user load average: 1.00 1.02 0.67
? ? (CSSA):
http://www.swd.gov.hk/tc/index/site_pubsvc/page_socsecu/sub_addressesa/