OK.. I presume that the code that is in issue is between :
* MY POOR TRY:
AND
* END OF MY TRY
A few more questions:
When you run this ...
1.) Does it display values for 1 -4 ?
2. ) Does it EVER display "FOUND" ?
Somehting I would consider changing....
Change your "DO WHILE - ENDDO" loop to a "SCAN...ENDSCAN" loop.
With Scan endscan you do not ned to keep track of your record pointer by using SKIP. THe scan will go to the next record when it hits the ENDSCAN
AND... Yes you can have conditions in a SCAN...
Another thing that you might wanna try is seting a relationship between the table and the cursor... then SCAN the Cursor for NOT EOF. this will go through all the records in your cursor that have records in the table. Then.. inside the SCAN loop you just do your replace statement.
**************
LIKE SO !
**************
* FIRST ! Create your index on your vendor table. (not in the program from the command window).
INDEX ON f_vendor_number TAG VednorNum
************************************************** ************
* This is AMCAMX's Try !
* Open the vendor table, set its alias, and then set its order.
USE tvendorattribute IN 0 shared ALIAS TheVendor ORDER VendorNum
SELECT ReportCursor
SET RELATION TO ReportCursor.fvendornumber INTO TheVendor ADDITIVE
SCAN WHILE ! EOF("TheVendor")
* Since the record DOES exist !
REPLACE ;
f_vendor_status WITH fclass, ;
f_vendor_rating WITH frating
ENDSCAN
* END OF AMCAMX's TRY
************************************************** ************
I think it will run this way... You may have to tweak some things around tho !
I hope this helps !
AmcAmx