Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox

Status
Not open for further replies.

WCSO

Programmer
Nov 7, 2005
25
US
I've got a listbox on a page of a pageframe. It is based on an array. When I add a value through code to the array I use:
thisform.PageFrame1.Page1.List1.Requery
thisform.PageFrame1.Page1.List1.NumberOfElements=NumberFound
thisform.PageFrame1.Page1.List1.Refresh

But the list does not show the new value until I actually click on the list somewhere.
I've tried calling the refresh for the page and the form with the same result. I am using VFP 9.

Thanks
 
List1.RowSource=List1.RowSource had no change.
I had the following code in the activate of each page to highlight the active page:

THIS.Parent.Setall("Forecolor", 0, "Page")
THIS.Forecolor = 16711680
THIS.Parent.Setall("Fontbold", .F., "Page")
THIS.Fontbold = .T.

Once I removed it, the list refreshes, put it back, no refresh. I don't see why the above would cause it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top