Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gather memvar/scatter
Message
De
24/02/2003 04:53:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/02/2003 03:09:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00756000
Message ID:
00756888
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform