Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to locate the item After sorting
#37
I have an idea.

When the dialog starts, sort the items first, so that all the problems are solved
Smile

How to add sort switches in the following sub functions?

Can you help me realize this function? Thank you very much!


Macro Dialog_Edit_Autotext_mod3
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
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 macman - 02-01-2021, 03:17 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)