Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing 2 records
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01036517
Message ID:
01036530
Views:
11
The SCATTER NAME creates an object, with field names as properties, which COMPOBJ() than compare.
BTW, could you just zap tables and append records from VFP tables instead?

>
>I looked up ComObj() but, reading:
>
>"..any expressions that evaluate to objects, such as object references, object variables, or object array elements. "
>
>I thought it only compared objects as above, and not fields in tables. I'll give it a go
>
>Cheers
>
>Terry
>
>>Terry,
>>
>>Try
>>...
>>  SELECT table1
>>  SCATTER MEMO NAME oRec1
>>
>>  SELECT table2
>>  SCATTER MEMO NAME oRec2
>>  IF COMPOBJ(oRec1, oRec2)
>>     GATHER NAME oRec1
>>  ENDIF
>>...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform