oMDCTP:=new CTPMDclass() oMDCTP.Subscribe("6000.SS") oMDCTP.Subscribe("6635.SS") oMDCTP.Subscribe("6055.SS") for k,v in oMDCTP.MDarray MsgBox,% k ":" v class CTPMDclass{ static MDarray:={} Subscribe(ByRef Instrument){ StringSplit,strarr,Instrument,. OutputDebug,% strarr1 ;this.MDarray.Insert(strarr1 . "",1) this.MDarray.Insert(strarr1,1) } }
It should display "6000:1","6635:1","6055:1",but it display "6000:1","6636:1","6055:1" instead.
I'm using AHK_L 1.1.13.