[Gambas-user] trimming extra spaces from within a string.

Bruce Steers bsteers4 at gmail.com
Tue Nov 10 17:47:18 CET 2020


How come this does not work then?
I thought ByVal was supposed to enable this sort of thing but it does not
seem to work?













*Private Sub InTrim(ByVal sVar As String) If Not sVar Then ReturnDim OldLen
As IntegerRepeat   OldLen = Len(sVar)   sVar = Replace(sVar, "  ", "
")Until Len(sVar) = OldLensVar = Trim(sVar)End*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201110/35bbbc07/attachment.htm>


More information about the User mailing list