Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seek not working
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
01133476
Message ID:
01133482
Vues:
14
>
>lclregno = UPPER(ALLTRIM(thisform.pgfpageframe1.page4.txtCma_regno.Value))
>
>SELECT 0
>SELECT NWC
>
>WAIT WINDOW "reg is_" + lclregno + "_"
>
>IF lclregno <> ""
>	
>	WAIT WINDOW "regno variable is not blank"
>	
>	SELECT NWC
>	SEEK lclregno ORDER CMA_regno
>	
>	IF EOF()
>		WAIT WINDOW "try a locate first"
>		SELECT NWC
>		LOCATE FOR lclregno = UPPER(ALLTRIM(CMA_regno))
>		IF FOUND()
>			WAIT WINDOW "locate found it"
>		ELSE
>			WAIT WINDOW "not found"
>		ENDIF
>...
>...
>
Before the real problem, is there a reason you use EOF() instead of !Found() ?
Now to the question: are you sure that the table and index you think you are using, actually being used?
After the Select NWC , how about trying:
set order to CMA_regno
=messagebox(dbf()) + " "+key()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform