Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LOCATE Command Fails
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
LOCATE Command Fails
Miscellaneous
Thread ID:
01007802
Message ID:
01007802
Views:
59
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
Next
Reply
Map
View

Click here to load this message in the networking platform