I have an idea.
When the dialog starts, sort the items first, so that all the problems are solved
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
When the dialog starts, sort the items first, so that all the problems are solved
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
#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