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

ComBo BOX Listindex ERR

Status
Not open for further replies.

parkmingyu

Technical User
Oct 15, 2024
1
nDim1 = (ASCAN(DIMNO, ALLTRIM(m.com1), 1, -1, 1))
nDim2 = (ASCAN(DIMNO, ALLTRIM(m.com2), 1, -1, 1))
nDim3 = (ASCAN(DIMNO, ALLTRIM(m.com3), 1, -1, 1))

ThisForm.Combo2.ListIndex = nDim1
ThisForm.Combo3.ListIndex = nDim2
ThisForm.Combo4.ListIndex = nDim3

ThisForm.Combo2.ListIndex = nDim1 It works exactly

ThisForm.Combo3.ListIndex, ThisForm.Combo4.ListIndex The wrong value is entered. Is there a solution?
 
Last edited:
What are the lists of records in the comboboxes? rowsource, rowsourcetype, boundcolumns? Things like thata. Is combox.sorted .T. , and what do you expect to see as the piked item? Listindex is not necesarily the index of the elemtn in the arry DINO, if that's what you also use as a rowsource for combobox items.
 
Last edited:
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top