Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor manipulation questions;
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00256590
Message ID:
00256616
Vues:
19
2 things. Try dbf('myCursor') instead of dbf() (you shouldn't need it but...)and check your setting for FULLPATH, if OFF it may be looking for the cursor in the wrong place.

Try a ? dbf('MyCursor') right before the USE AGAIN line and see exactly what it's returning.

hth

>I found one of the problems... there was an old table called Temp on disk that it was grabbing instead of using the cursor. I deleted it and am using a different name for the temporary cursor, but now I get the 'file not found'. If I use line 8A, it gives me 'Invalid path or filename'.
>
>
>>>
>>> 1 USE students IN 0 ORDER student_id
>>> 2 USE orders IN 0 ORDER student_id
>>>
>>> 3 DO NoHomeAddress
>>> 4 DO cursorprep
>>> 5 DO merge
>>>
>>>..... code continues....
>>>
>>> 6 PROCEDURE NoHomeAddress
>>> * locate empty address fields in students table where data exists in orders table.
>>>
>>> 7 SELECT students.student_id, students.fname, students.lname,;
>>> students.YEAR, students.hm_address, students.hm_city, students.hm_state,;
>>> students.hm_zip, students.hm_zip5_4, students.hm_phone,;
>>> orders.hm_address, orders.hm_city, orders.hm_state, orders.hm_zip,;
>>> orders.hm_zip5_4, orders.hm_phone;
>>> FROM students INNER JOIN orders ;
>>> ON students.student_id = orders.student_id;
>>> WHERE orders.hm_address > ' ';
>>> AND students.hm_address = ' ';
>>> ORDER BY students.student_id;
>>> INTO CURSOR Temp nofilter
>>> 8 USE temp AGAIN IN 0 ALIAS c_Addresses
>>> 8A *USE (dbf()) AGAIN IN 0 ALIAS c_Addresses
>>
>>> Lines 8 or 8A - I'm trying to convert the read-only cursor from the SELECT statement to an updatable cursor so I can eliminate records with bad address info. When using line 8, sometimes I will get 'File not found' errors. If I use lin 8A, it returns 'Invalid path or filename'. In addition, the cursor c_Addresses does not contain all the fields from the cursor Temp. What is really strange is that at one time or another, both of these forms have worked in the past on this routine.
>>>
>>
>>I'll try problem 8A. Add a ,.T. at the end of your field list. Even with a NOFILTER, I believe you can still get a filtered list.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform