Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparing one table to another
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00727145
Message ID:
00727212
Views:
33
>oopps i forgot NAME clause:
>
>scatter name loname1
>
>:))
>
>>you could use scatter name, example:
>>
>>select table1
>>scatter loname1
>>select table2
>>scatter loname2
>>
>>?COMPOBJ(m.loname1,m.loname2)
>>
>>Should works?
>>
>>Franco

Gentlemen,
The following is what I used, it seems to have done the trick. Thank you all for your help. You guys are great.
select MyFirstTable
lnRecTotal = RECCOUNT()

FOR lnRecCount = 1 to lnRecTotal
	GO lnRecCount
	IF NOT deleted()
		SCATTER NAME loName1 
		SELECT MySecondTable
		SCATTER NAME loName2
		SCAN REST FOR COMPOBJ(loName1,loName2) = .T.
		  	
			if COMPOBJ(loName1,loName2) = .T.
				SELECT MyFirstTable
				GO lnRecCount
				DELETE
			ENDIF
			WAIT WINDOW STR(lnRecCount) nowait
			
		ENDSCAN 
	ENDIF 
ENDFOR 
Winn Pauley
Previous
Reply
Map
View

Click here to load this message in the networking platform