Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCATTER TO oName ADDITIVE
Message
 
To
04/05/2006 14:23:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01119312
Message ID:
01119315
Views:
17
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform