Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting the recods from cursor
Message
De
20/01/2008 13:58:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01283436
Message ID:
01283444
Vues:
14
>thanks Hilmar your reply.
>in youe second answer
>need only one line or this line is need for each record
>scatter name loRecord
>
> scatter code loRecord
>scatter level loRecord
>.........

For each record, in both cases.

SCAN is a special loop that will go through all the records in the cursor.

SCATTER NAME will create an object called loRecord (in this example). Each field will be a property of the object loRecord, so that you can access loRecord.Field1, loRecord.Field2, etc.

If the field names are the same in both tables, you can also use GATHER NAME with the object loRecord, created previously with SCATTER NAME.

In many cases, you can also get the field values directly from the cursor or table name - MyCursor.Field1 - without using intermediate variables or objects.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform