Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update Table From Dynamic Cursor
Message
 
To
26/07/2001 18:17:08
Matthew Onken
Mike's Mobile Windshield
Chico, California, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00536095
Message ID:
00536110
Views:
6
>I have a dynamic cursor that I created from a table. I want to change a value in the dynamic cursor then use an update command to make the changes to the original table.
>
>When I make the update the command is:
>
>Update jobspread set jobstobook = temp.jobstobook where mydex = temp.mydex
>
>Nothing happens. I can use the same commands for two tables and it works fine.
>
>Jobspread is the original table that the cursor is created from. temp is the name of the cursor. Mydex is a unique key.
>
>Thanks for any help you can give

1. Try to use NOFILTER when selecting your temp cursor.
2. Try to save values of fields in temp cursor to a memory before calling update
local m_jobstobook, m_mydex
m_jobstobook = temp.jobstobook
m_mydex = temp.mydex
Update jobspread set jobstobook = m_jobstobook where mydex = m_mydex
Serge Matsevilo, Seattle, WA, USA
Senior Programmer/Analyst,
iServ Systems, Inc.
e-mail: smatsevilo@iservsystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform