Thank you for sharing your work very greatful! It is vary easy to use, give me a lot of help.
When i ues , i found a problem with SA_Del() . Sample like that:
Code:
Ary1 = a|b|c
Ary2 = d|e|f
MsgBox % "Adding one array as an element in another:`nArray2:`t"
. Ary2 "`nInside:`nArray1:`t"
. Ary1 "`nBecome:`t"
. Ary1 := SA_Set(Ary1,Ary2,4)
MsgBox % "Delet an element in the end of a Array:`n"
. Ary1 := SA_Del(Ary1,4)
I found you lost think with StringGetPos return error.
The original code in SA_Del():
Code:
Dir = R
changed to:
Code:
rDir = R
The original code in SA_Del():
Code:
StringGetPos, lPos, Array, |, % lDir lIdx
StringGetPos, rPos, Array, |, % rDir rIdx
lStr := SubStr(Array, 1, lPos)
rStr := SubStr(Array, rPos+2)
changed to:
Code:
StringGetPos, lPos, Array, |, % lDir lIdx
StringGetPos, rPos, Array, |, % rDir rIdx
If ErrorLevel
rStr := ""
Else
rStr := SubStr(Array, rPos+2)
lStr := SubStr(Array, 1, lPos)
And i also change the SA_Dec():
Code:
SA_Dec( Val )
{
StringReplace, Val, Val, `%@*, |, All ; d(elimeter char)
StringReplace, Val, Val, `%$#, `%, All ; e(ncoding char)
return Val
}
SA_Enc as the same. Because i worried "%d" may appear in the content of array itself.
Your code so smart make me shock!
It's the first post of me in here . I'm llook forward the greatest Array lib.