Code: Select all
StringSplit,myArray,Clipboard,`n,`r
msgbox % myArray.MaxIndex() ; size of myArray
Code: Select all
StringSplit,myArray,Clipboard,`n,`r
msgbox % myArray.MaxIndex() ; size of myArray
StringSplit - OutputArray wrote:
The name of the pseudo-array in which to store each substring extracted from InputVar. For example, if MyArray is specified, the command will put the number of substrings produced (0 if none) into MyArray0, the first substring into MyArray1, the second into MyArray2, and so on.
Code: Select all
StringSplit,myArray,Clipboard,`n,`r
msgbox % myArray0 ; size of myArray
StringSplit wrote:
Deprecated: This command is not recommended for use in new scripts. Use the StrSplit function instead.
Hi Helgef, I don't know what I'm doing wrong but I can't get StrSplit to work.
Code: Select all
myArray := StrSplit(Clipboard, `n,`r)
Code: Select all
myArray := StrSplit(Text, "`n","`r")
Users browsing this forum: Jacquesyip and 120 guests