Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LOCATE Command Fails
Message
 
To
23/04/2005 12:50:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01007802
Message ID:
01007814
Views:
12
FYI - I tested it in VFP8 and it worked fine.



>I didn't test and don't know. Guessed it was 7:)
>Cetin
>
>>Ok, thanks
>>
>>This is a VFP7 project. DO you know if this issue persists in 8/9 also?
>>
>>>Kevin,
>>>Known issue. You found the correct way. Or alternatively assign to a memvar first and use memvar.
>>>PS: Don't forget to prefix memvar with m.
>>>Cetin
>>>
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform