Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can some send me some samples of SET REAL?
Message
From
02/10/2000 16:48:31
 
 
To
02/10/2000 16:43:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00423709
Message ID:
00423753
Views:
11
>Robert,
>
>>table1
>>fld 1 = custno
>>fld 2 = partno
>>
>>table2
>>fld 1 = custno
>>fld 2 = partno
>>
>>need a set relation on custno+partno into table1
>
>Assuming that both fields are Character-type, you would do this.
>
>USE table1
>*INDEX ON custno+partno TAG custpart
>SET ORDER TO TAG custpart
>SELECT 0
>USE table2
>SET RELATION TO custno+partno INTO table1
>

>However, if the fields are numeric, you must convert them to character first:
>
>USE table1
>*INDEX ON STR(custno,6)+STR(partno,6) TAG custpart
>SET ORDER TO TAG custpart
>SELECT 0
>USE table2
>SET RELATION TO STR(custno,6)+STR(partno,6) INTO table1
>

These will not work:
The problem is with SET RELATION TO custno+partno INTO table1.
It can not find partno.
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform