Consider this code...
Code: Select all
Dim sVar, lfVar, crVar As String
sVar = "Here is some text"
lfVar = Replace(sVar, " ", "\n")
crVar = Replace(sVar, " ", "\r")
Print "lfVar is " & lfVar
Print "crVar is" & crVar
Code: Select all
lfVar is Here
is
some
text
textr isHere
Just using \r is causing all manner of strange output.
and loading text containing an '\r' into say a TextEditor object was giving me text overlapping errors in places.
Am i missing some need to know info about escape characters and the need to use CrLf and not just Cr with the Print command here or could i have found a bug?
(I've reported a few bugs of late, starting to feel like I'm pestering Benoit especially when he has to tell me it's not a gambas but its a gtk bug or somethijng like that, so trying to find if i'm just being an idiot here lol)
Cheers all