I'm not sure where 'querycolsinserts' comes in to this but the code below works fine: - *Public Sub Form_Open() Dim query1 As String = "`SHW325X`," Dim siCount As Short For siCount = Len(query1) DownTo 1 Print String.Left(query1, siCount) Next Print String.Left(query1, -1) Print Left$(query1, -1) Print Left(query1, -1) End* The output is: - `SHW325X`, `SHW325X` `SHW325X `SHW325 `SHW32 `SHW3 `SHW `SH `S ` `SHW325X` `SHW325X` `SHW325X`
----- Check out www.gambas.one -- View this message in context: http://gambas.8142.n7.nabble.com/left-vs-String-left-behaviour-tp59070p59083.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user