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

Syncing combo box index sort to a RAF

Status
Not open for further replies.

Quehay

Programmer
Feb 6, 2000
804
US
I'm doing a project for a class wherein the contents of an RAF are loaded into a combo box and edited, added to, deleted via additional textboxes (an instructor derived gerbil wheel). I'm having problems because the combo sorts but the index doesn't have relevance to the RAF, which is isn't sorted. I haven't yet, being a neophyte, figured out how to write code that will "Put" existing combo entries into the file in their sorted form. (Another problem is that the combo entry is a concatenated string that represents two facets of a data type in the file).
 
Not sure what a RAF is, but if you want to put the contents of a sorted combo box into a file, this will work:<br>
<br>
dim f as integer<br>
f = freefile<br>
open &quot;myfile.txt&quot; for output as #f<br>
for i = 0 to combo.listcount - 1<br>
print #f, combo.list(i)<br>
next<br>
close f <p>nick bulka<br><a href=mailto:nick@bulka.com>nick@bulka.com</a><br><a href= > </a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top