Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A question about ASCAN()
Message
De
12/01/2001 11:44:24
 
 
À
12/01/2001 11:36:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00463010
Message ID:
00463029
Vues:
17
It might be. If myfld is zero yet zero is not in myarray then the result is zero returning zero records. OTOH, if myfld is not zero but myarray contains zero and also contains myfld (which is non-zero) then the result set is not empty (zero records). If myfld is zero and zero is an element of myarray then scanning for zero where there is a zero is not zero and NOT zero records will result.

I hope that I have cleared this up.

>>>My code is:
>>>select * from mytable where ascan(myarray,myfld) # 0 into cursor mycursor...
>>>What does # 0 mean or do ????
>>
>>#0 means 'not equals' zero. Same as != 0 or <> 0.
>----
>Hi Rick,
>Is the select statement saying...where myfld is not equal to 0?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform