Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Gather memvar/scatter
Message
From
24/02/2003 04:53:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/02/2003 03:09:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00756000
Message ID:
00756888
Views:
11
>Please give more details.
>Thank you
>Chaim

ie:

Your scatter/gather might look like :
select Source
scan for SomeExpression
 scatter memvar memo
 insert into Target from memvar
endscan
Could be written as :
select Target
append from Source for SomeExpression

*or
select f1 as myF1, f2 as myF2,... from mySource into array arrMyArray
select Target
append from array arrMyArray

*or
select source
copy to array arrMyArray for SomeExpression
insert into Target from array arrMyArray 

*or
select source
copy to array arrMyArray for SomeExpression
select Target
append from array arrMyArray
VFP8 has greater control :
* Sample 1: Using scatter name
select Source
scan for SomeExpression
 scatter name objRecord memo
 objRecord.myField = objRecord.myField * 2 && Change a field value
 insert into Target from name objRecord
endscan

* Sample 2: Using insert into ... select ...
insert into Target  ;
  select *, AdditionalExpr as myAdditonalField ;
  from Source ;
  where SomeExpression
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform