Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you know if a SQL select didn't select anything?
Message
From
01/07/1999 15:37:19
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00236234
Message ID:
00236653
Views:
12
>>I don't have specific, repeatable examples I can give. -snip-
>
>Tanks for the reply. _TALLY seems to be working fine for now.

PMFJI: My observed problems with _Tally have been related to the value not being reliable if multi-table selects are involved. Apparently the system variable _Tally sometimes returns a count from whichever the last table used had, and that might not accurately reflect the count of the elements of the output table or array. (Sorry for the poor grammar here...) In any event, our standards here are to never use _Tally. In the example given, similarly to what was already posted, we would release the array, dimension it (dimension la_arry(1)), do the select or adir() or whhateve, and then test for type(la_arry(1)) $ 'U,L' -- which is true if undefined or logical (since we would not usually have element 1 of the array ever be a logical this is okay).

HTH

Rob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform