Use this:
Func Select_Template($sListItem)
#cs
_SQLite_QuerySingleRow($hDB, _
"SELECT Content " & _
"FROM Templates " & _
"WHERE ID = " & $sListItem & ";", $aRow)
;~ MsgBox(64, "Test: " & $sListItem, $aRow[0])
#ce
Dim $aRow[1] ;just for test delete it
$aRow[0]="^XA^FX | Delete files from FLASH (E:) | ^FS^IDE:X5_*.*^FS^XZ" ;just for test delete it
$aRow[0]=StringStripWS(StringReplace(StringReplace($aRow[0],"^",@CRLF&"^"),@CRLF&"^FS","^FS"),$STR_STRIPLEADING)
GUICtrlSetData($hEdit, $aRow[0])
WinSetTitle($hMainGUI, "", "Test: " & $sListItem)
EndFunc ;==>Select_Template
Run >= once without any change, after tested with the hardcoded line, delete the 2 "just for test lines" and try with real data, this means also delete lines #cs and #ce.