Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visual FoxPro 5.0 and Indexes not being updated
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00725252
Message ID:
00729813
Views:
26
>I have a form that has a table in it that doesn't get the index updated when a record is added. The form is setup as a private data session and buffering set to optimistic. The table is setup with optimistic row buffering. The data is in the table. Set order to allows you to view the record that was added. Set the order to any of the indexes on the table and you can not view the record. Does anyone have any suggestions for a fix?
>

I'm surprised noone has mentioned it yet, but do you issue a TABLEUPDATE() both against the view AND the table? The index is only updated when the data is committed to the table; in this case, TABLEUPDATE() against the view commits the data to the table's buffer, but not to the table itself.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform