Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00678065
Message ID:
00678077
Views:
14
Hi,

Call combo.refresh() after returning back to the form. You may also need to call combo.requery() (this depends on RowSource for the combo).

The text portion of the combo is DisplayValue You can manipulate it, as well as ListIndex.

Here is code, I use in similar situation:
with this.cboSelTowns
     .requery()
	select curSwitchTowns
	locate for town == this.cTown
	.ListIndex = recno()
	select (m.lnSelect) 
endwith
>Hi,
>
>Is there any way to manipulate the current value displayed in the TEXT portion of a combo box before the user clicks to select a value.
>
>I have a form, that displays some information on a student. When the user clicks the 'More Information' button, it takes him to another form where, he can see more info on the student. The student's id appears in a combo box on the second form and selecting another id from this will show the user more info for that student.
>
>But when I move from form1 to form2, eventhough the row source for the combobox, which is a table, points to the correct record, the id for the student is not diplayed and all other controls are updated to show the info for this student. Since the text property of the combo box is read only at run time, I cannot use it. How do I do this?
>
>Any help would be appreciated.
>
>Ria
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform