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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

combo - displaycount?

Status
Not open for further replies.

bs6600

Programmer
Sep 23, 2005
53
GB
I have a combo, array based, displaycount initialised to 25.

At run time, the array is filled with a varying number of rows and I change display count to the length of the array.

The box opens with the correct number of entries but the user can still scroll down to 25 list rows.

How can I limit the user to just the number of rows in the array?



Bill Spence,
Dunfermline, Scotland
 
Good question Olaf! I use the combo repeatedly during each invocation of the form with a different number of rows in the array on each occasion. (The user selects a table and the combo shows the tags for that table, then another table etc etc)

I have to start somewhere and 25 seemed a good idea but any number would do (I tried 1).

Perhaps I will have to create and destroy the array property for each instance - would I have to set the .rowsource at the same time.



Bill Spence,
Dunfermline, Scotland
 
Perhaps I will have to create and destroy the array property for each instance - would I have to set the .rowsource at the same time.

I would store a .f. first then re-diminsion to a 1 before repopulating...
 
Or you could just use a select statement into this array and have foxpro do all the work for you....

 
destroying and recreating the array is the sure way. redimensioning it to 1 would be sufficient I think.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top