Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select into array
Message
 
To
12/10/2006 01:11:25
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01161377
Message ID:
01161382
Views:
14
Hi Suhas,

Using _TALLY is very clear...

Another testes:
1) Using TYPE()
SELECT field FROM table WHERE field="nothing" INTO ARRAY laPom
?TYPE("xxa")
* U if SELECT return 0 rows
* non U if SELECT return 1 or more rows
2) Test of default size array if you want return 2 or more columns
LOCAL ARRAY laPom(1)
SELECT field,field2 FROM table WHERE field="nothing" INTO ARRAY laPom
?ALEN(laPom)
* 1 if SELECT return 0 rows
* >1 if SELECT return 1 or more rows
MartinJ

>hi,
>I am facing a problem
>
>Select into array ...
>
>how do i know that the arrry is created other than the use of _tally ?
>
>TIA
>suhashegde
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform