Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Rows-Perplexed
Message
 
 
To
09/06/2006 11:08:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01128125
Message ID:
01128128
Views:
20
Rich,

>I'm a relative newbie to VFP.

Welcome to the zoo!

>I have an app where I add a record, and then I programmatically select the record from a refreshed listbox, and it doesn't find it (but it's there). If I start the program again, then it finds it.

VFP doesn't know intuitively that you've changed the RowSource out from under the control. Use the .Requery() method to have it reread the data any time you change it:
insert into ...
this.Requery()
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform