viewtopic.php?p=1500
viewtopic.php?p=1516
Mind you, they are a superb field delimiter to use for grid data, including on the clipboard.
I am currently writing a masterpiece, well, at least one of the most intricate Gambas programs I have written so far. I'll be seeking alpha testers soon, so stay tuned on that, please, but back to the subject. One of the features is the ability to edit text notes and documents. For this I am using a TextArea control. The Tab key inserts tabs. Makes sense, except I want it to insert spaces instead. I couldn't find a corresponding property so here is my solution and it works. I prefer four space tabbing so I hard coded it, feel free to change or improve. This also works nicely at the end of a line.
'=============================================================================
Public Sub TheDocumentationTA_KeyPress()
If Key.Code = Key.Tab Then
Dim theColumn As Integer = TheDocumentationTA.Column
Dim theNextTabStop As Integer = (theColumn + 4) And Not 3
Dim theFill As String = String(theNextTabStop - theColumn, " ")
TheDocumentationTA.Insert(theFill)
Stop Event
Endif
End
'=============================================================================