Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCAN Problem
Message
From
10/01/2001 22:26:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00461246
Message ID:
00462034
Views:
18
Hi Kevin,

There are 4 one->menu processing scenarious that I know about
that you could utilize to do the job;

Open&Relate Tables
*
1.
Select table1
Scan
*
Select table2
scan while keyvalue1=keyvalue2
*
endscan
skip-1
select table1
endscan
(fast)

2.
Select table1
Scan
Select table2
scan for keyvalue1=keyvalue2 REST
*
*
endscan
select table1
endscan
(slower)

3.
select table1
Set skip to TABLE2 &&one to menu
scan
*
select table2
*
select table1
endscan
(fast)

4. SQL Select

PS This what are you trying to do is little bit strange
because even if you scatter content of table1 and then loop menu side to scatter content of related records, in table 2 you will have only
last found record scattered. What about the rest?
In this case your Insert statement has to be in the inner scan
in order to get all records done.

I hope this will help you resolve your problem.
Regards

!!! How you people get to insert code section (white&indented) inside reply???

*
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform