﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3696	"Func _ArrayFromString($s, $sDelim_Col = ""|"", $sDelim_Row = @CRLF, $iForce2D = 0)"	argumentum	Jpm	"
{{{
; #FUNCTION# ====================================================================================================================
; Author ........: argumentum ; https://www.autoitscript.com/forum/topic/197277-_arrayfromstring/
; Modified.......:
; ===============================================================================================================================
Func _ArrayFromString($s, $sDelim_Col = ""|"", $sDelim_Row = @CRLF, $iForce2D = 0)
	Local $m, $n, $b, $c = StringSplit($s, $sDelim_Row, 3)
	$b = StringSplit($c[0], $sDelim_Col, 3)
	If UBound($c) = 1 And Not $iForce2D Then
		For $m = 0 To UBound($b) - 1
			$b[$m] = StringStripWS($b[$m], 3)
			If $b[$m] == Int($b[$m]) Then $b[$m] = Int($b[$m])
		Next
		Return $b
	EndIf
	Local $a[UBound($c)][UBound($b)]
	For $n = 0 To UBound($c) - 1
		$b = StringSplit($c[$n], $sDelim_Col, 3)
		If UBound($b) > UBound($a, 2) Then Return SetError(1)
		For $m = 0 To UBound($b) - 1
			$b[$m] = StringStripWS($b[$m], 3)
			If $b[$m] == Int($b[$m]) Then $b[$m] = Int($b[$m])
			$a[$n][$m] = $b[$m]
		Next
	Next
	Return $a
EndFunc   ;==>_ArrayFromString
}}}

This function reconstructs an ""array to text"" created with _ArrayToString() and proposed change to _SQLite_Display2DResult() on ticket [https://www.autoitscript.com/trac/autoit/ticket/3695#ticket].

Test code is at [https://www.autoitscript.com/forum/topic/197277-_arrayfromstring/]

This addition is not code braking."	Feature Request	closed	3.3.15.4	Standard UDFs		None	Completed	_ArrayFromString	
