Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List box..force to particular item
Message
 
To
01/12/1999 10:30:09
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00297286
Message ID:
00297334
Views:
23
>Thanks Marcia.
>
>>Hi Mary-Ann.
>>
>>>> Have a list box that has a field from a view as the source. After adding a record to the view, I want the form to be on the newly added record. How do I force this to happen? <<
>>
>>After the record is added to the view, you have to do a listbox.requery() and then set it's value to the approriate field in the newly added record.
>>
>>Marcia

Just to add: I always use listbox.DisplayValue for this purpose, because .Value and .DisplayValue may be different, and I want to make sure that I set the property which I actually can see in the listbox.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform