Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_TALLY = 0 ???
Message
De
30/12/1999 13:14:40
Jorge Haro
Independent Consultant
Juarez, Mexique
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
_TALLY = 0 ???
Divers
Thread ID:
00310544
Message ID:
00310544
Vues:
45
Hi all, I have several lookup textboxes that query a remote view for a valid code as in:
tcCode = this.value
requery("MYVIEW")
if _TALLY > 0
   &&If I found one do something
endif
The views are parametri.., parametris..., use parameters :) as a filter condition as in:

select ..
.. ;
where cCode = ?tcCode

The problem is that I am having a strange problem with one of them, _tally is 0 even though the select retrieves a record (It's supposed to retrieve only one or none), so the program assumes an invalid code.

I found a safe workaround, but I'm confused, isn't _Tally supposed to contain the number of retrieved records by the select? , or am I missing something?, the other textboxes doing this are working properly relying on the value contained in _TALLY.

TIA
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform