Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I refresh my combo to see a newly appended record
Message
From
16/08/1999 23:41:11
 
 
To
16/08/1999 19:52:13
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00253805
Message ID:
00254399
Views:
25
>Hm. Did Marcia's suggestion of adding the refresh() help?
>
>At what point and how do you check the listcount?

Actually, I had already tried that. No work'em. But....

I did find the problem, after simplifying with a test form.

I was using .listitemid instead of .listindex to force the list to where I want it. Don't know if that's the recommended way. But it works! The successful snippet is:
append blank
thisform.mycombo.requery
thisform.mycombo.listindex = 1  && table ordered on wono & blank value
                                &&  for wono makes this work
thisform.refresh
It seems like modifying .listindex is a trigger for getting the combo to synch up it's displayvalue,value and rowsource. Is that true?
"The Iron Fish: The water is cold...but the fish don't mind"
...Jay Jenks, boyhood chum
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform