Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to locate the item After sorting
#38
to sort the list in listbox1 is simple

find line
Code:
Copy      Help
atItems=atn
 
add a new line above it
Code:
Copy      Help
atn.sort(8)
 
so subfunction would look like this now
Code:
Copy      Help
#sub DisableEnableAutoText
function mode [str'dati] [str&atItems] [str&atditems]
QMITEM q; int i
ARRAY(str) atn atd
rep
,i=qmitem(-i 1|16 &q 1)
,if(i=0) break
,if q.itype=4
,,atn[]=q.name
,,sel mode
,,,case 1 ;;disable
,,,if(dis(q.name)) atd[]=q.name
,,,else dis+ q.name
,,,case else ;;enable
,,,int fdat=findw(dati q.name 0 "[]")
,,,if fdat = -1
,,,,dis- q.name
if(mode <>1) ret
atn.sort(8)
atItems=atn
atditems=atd


Messages In This Thread
how to locate the item After sorting - by macman - 01-17-2021, 12:21 AM
RE: how to locate the item After sorting - by Kevin - 02-01-2021, 03:47 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)