Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCATTER TO oName ADDITIVE
Message
 
À
04/05/2006 14:23:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01119312
Message ID:
01119315
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>I have a very small routine which scatters fields to a named object then gathers that information into another cursor which includes an additional field
>
>How do I add "notes" to the oFields object? Do I use oFields.AddProperty() ???
>
>
>SCAN
>   * assume that all these fields translate into curTable
>   SCATTER NAME oFields ADDITIVE
>
>   * assume that "notes" does not exist in the oFields object
>   * but "status" does
>   oFields.notes = oFields.status
>
>   * curTable wants to have "notes" inserted into it
>   INSERT INTO curTable FROM NAME oFields
>ENDSCAN
>
ADDPROPERTY(oFields,[Notes],oFields.Status)
** or
ADDPROPERTY(oFields,[Notes])
oFields.Notes = oFields.Status
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform