Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LOCATE Command Fails
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
LOCATE Command Fails
Divers
Thread ID:
01007802
Message ID:
01007802
Vues:
60
I have the following segment of code:
WITH This

  SELECT FSPrefs
  SET ORDER TO RowId
		
  LOCATE FOR ProductId = .nProductId AND;
                         RowId = cRowId AND;
                         OptionNo = nOption

  IF FOUND()
    *** Some code here
  ENDIF

ENDWITH
This errors out saying 'nProductId not found'

If I include the 'This' statement in front if the 'nProductId' property, it
works fine:
WITH This

  SELECT FSPrefs
  SET ORDER TO RowId
		
  LOCATE FOR ProductId = This.nProductId AND;
                         RowId = cRowId AND;
                         OptionNo = nOption

  IF FOUND()
    *** Some code here
  ENDIF

ENDWITH
Anyone know whats going on here?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform