Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

help with quotes

$
0
0
i am inserting values from a text file into a sqlite database.

first i create the array then cycle through each array record and insert it into a sql table.

[ autoit ]      
For $y = 0 To UBound($avOut) - 1      $aTemp[0] = "'" & $avOut[$y][0] & "'"         $aTemp[1] = "'" & $avOut[$y][1] & "'"         $aTemp[3] = "'" & $avOut[$y][3] & "'"         $sTemp = $aTemp[0] & "," & $aTemp[1] & "," & $aTemp[3]         _SQLite_Exec(-1, "INSERT INTO aAssetInfo (Tag,Status,Type) VALUES (" & $sTemp & ");") Next

the problem i am running into is when a data field has a single quote, then that record is not inserted.  how should i specify the quotes here
[ autoit ]      
"'" & $avOut[$y][0] & "'"
to get around that?

thanks in advance!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>