[Gambas-user] Line Column
Benoit Minisini
gambas at ...1...
Thu Sep 9 13:10:56 CEST 2004
On Thursday 09 September 2004 03:55, BUDI ARIEF GUSANDI wrote:
> Well i need the column position of the last letter in a line. How can i
> get it ?
>
> Thanks.
>
> Budi
>
At the moment, you must do it by hand, in a very poorly optimized manner.
sLine = Split(MyTextArea.Text, "\n")[TheLine]
TheColumn = String.Len(sLine) - 1
You must use String.Len() and not Len(), because the contents of a TextArea is
encoded with the UTF-8 charset.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list