Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does the array/table exist?
Message
 
 
To
21/11/2002 14:48:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00725387
Message ID:
00725425
Views:
8
>At first you'll get error message if query was not successful.

No error is generated when query returns 0 records.

>If you use Select INTO TABLE then table will be open and active after querying. Try something like that:
>
>SELECT 0
>Select-SQL command
>lSuccess = USED()
>
>This is also right for INTO CURSOR.


A query always creates table/cursor so the check above doesn't provide any usefull info. You should check system variable _TALLY that holds the # of records returned.

>For checking of array existance try:
>
>lSuccess = TYPE("ALEN(ArrayName)") = "N"


No need to do that. You can use _TALLY.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform