[Gambas-user] left$ vs String.left behaviour

Charlie charlie at ...2793...
Tue May 23 13:07:41 CEST 2017


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.



More information about the User mailing list