Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexseek() not working with a cursor
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Indexseek() not working with a cursor
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01627510
Message ID:
01627510
Vues:
59
I am experiencing a strange problem with a cursor.
I am using indexseek() in the interactive change of a text box in order to update a navigation grid.
The cursor is indexed and contains 5 tags. One tag is named 'customer'.
A snipet of my searching code is as follows:

IF TYPE(tcSearchValue) $("U,N,C")
IF INDEXSEEK(tcSearchValue, .F., tcTheTable, tcTheTag)
******** search value was found
INDEXSEEK(tcSearchValue, .T., tcTheTable, tcTheTag) && value found, update record pointer
******** Now update pointer
**************** Do something
else
********* Not found
endif && IF INDEXSEEK(tcSearchValue, .F., tcTheTable, tcTheTag)
endif && IF TYPE(tcSearchValue) $("U,N,C")

I am searching an index in a cursor. I pass the the cursor name and tag name to this procedure.
This works as expected in design mode, but it doesn't as an .app or .exe. It won't find anything I pass it. It returns no errors, just doesn't find any thing.

Any thoughts?
Driving toward a Tactical Edge
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform