Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compare
Message
From
08/11/2005 05:53:45
 
 
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:
01066349
Views:
20
hi,
how are you.
i have 2 tables as you see TTY TABLE have tel,type with full data,
another SSS TABLE have just tel,field typ is empty i need to seek if tel=tel replace typ with type,

INDEXSEEK(), i think new thing for me.

if you have a time to write sample code it will be fantastic. if not it will be fantastic.
have a nice time

m.qasem

>>hi,
>>thank you for reply,
>>
>>this code make infinit loop,
>
>M
>
>You don't need the Scan loop. You're just trying to locate a particular record in the table. If, OTOH, you're going through one table and trying to find matching recs in another, then you need to select the other table within the loop, or better still, have matching keys (as a relationship between them) and do an
>INDEXSEEK()
>
>Where does the table sss come into this otherwise?
>
>>
>>
>>
>>>>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