Search the Community
Showing results for tags 'comma'.
Hi All, I'd like to replace 'COMMA' with ',' for example: $myString = "COMMA" StringRegExpReplace($myString, 'COMMA', ',') Now I've tried escaping the ',' in various ways unsuccessfully, such as: '[,]' "[,]" '\,' [,] seems to work in the pattern, I just can't figure out how to use it in the replace, and it seems everyone online is only interested in removing/replacing commas lol. I also tried creating and using a variable as the replacement but also didn't work: $myComma = "," $myString = "COMMA" StringRegExpRep
Dim $oneDarray $oneDarray=StringSplit($Rawfile, @CRLF, 1) $columnsCounter = stringsplit($oneDarray,",") GUICtrlSetData ( $Output,"*Group columns Detected from csv:"& $columnsCounter &@CRLF, @CR) ConsoleWrite("*Group columns Detected from csv:"& $columnsCounter &@CRLF) Dim $twoDarray[$oneDarray + 1][$columnsCounter + 1] For $x = 1 to ($oneDarray) $oneRow = stringsplit($oneDarray[$x],",") For $y = 1 to ($oneRow) $twoDarray[$x][$y] = $oneRow[$y] Next Next Log Output Array variable has incorrect number of subscripts or subscript dimension range exceede
For example I have a list like this.. How can I store all the list items on that GUI program into a string with the following format: $IniKey = "item1, item2, item3" Thanks in advanced!