Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing field with anothers tables field
Message
 
To
20/04/2000 04:28:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00361685
Message ID:
00361688
Views:
16
Select Policy
Set Order to ssNumberTag in client
Set Relation to ssnumber Into client
Replace all group_code with client.group_code

This will do the same. Although, it will replace group_code with null if no record is found in client.

>> Hi, <
>> I have two tables one client the other policy. <
>> What I'm trying to do is replace a field in my policy tabl with <
>> a field in my client table. <
>> the code syntax is as follows: <
>
>> Select policy <
>> <
>> replace group_code with client.group_code ; <
>> for seek(policy.ssnumber,"client","ssnumberTag") <
>> <
>> Again, new to VFP6.0 but getting it fast. Does anyone have <
>> have anotherway of doing the same thing ? If possable, a code <
>> sample please. I was thinking of using a replace statment, <
>> but didn't know how to express it in code. <
>> thanks John <
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform