Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does the array/table exist?
Message
De
21/11/2002 14:57:20
 
 
À
21/11/2002 14:48:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00725387
Message ID:
00725425
Vues:
9
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform