Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare
Message
From
08/11/2005 04:51:05
 
 
To
08/11/2005 04:44:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066331
Message ID:
01066338
Views:
19
I don't have the time to show you in details, but you have done this completely wrong!

1. Open the two tables, Set relation properly, and Replace all for ..

To add the not found records:
1. Make a table of the not found by a simple SQL Select into a cursor
2. Append from this cursor to add the not found records

And by the way, with VFP9, you can do this with two lines of code, one to update, and one line to insert the missing records.

>hi,
>is this code make the same, if yes
>if not found how i can insert at typ (empty)
>
>CLOSE all
>INSERT INTO sss.typ;
>select *from tty WHERE tel  in(select tel FROM sss);
>
>thanks.
>>>hi all,
>>>
>>>any help.
>>>i try to compare between 2 tables as under , but no result
>>>
>>>
>>USE tty in 0
>>    m.tel=tel
>>    m.typ=typ
>>
>>USE sss in 0
>>SELECT tty   &&& add this line
>>scan
>>   LOCATE FOR tel=m.tel
>>     IF FOUND()
>>       replace typ with m.typ
>>     ELSE
>>       replace typ WITH  SPACE(10)
>>endif
>>endscan
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform