[Gambas-user] New Editor Side Bar

Tony Morehen tmorehen at ...3602...
Sun Dec 18 15:50:20 CET 2016


Thanks for the info, Benoit.  I'm still learning all of Gambas' nuances.  BTW, I am using string.instr.

On December 18, 2016 3:43:07 AM EST, "Benoît Minisini" <gambas at ...1...> wrote:
>Le 18/12/2016 à 05:52, Tony Morehen a écrit :
>> Fabian, it looks great and works like a charm.
>>
>> By the way, I'm working on text editor which would benefit from a
>couple
>> of minor changes to the text editor component.  Could you make
>> $hDoc.Lines a read/write property of TextEditor and $hDoc.LineLength
>a
>> read only property?
>
>No need for that. Use TextEditor array accessor to access a specific
>line:
>- "MyTextEditor[Line].Text" returns a the "Line" line.
>- "MyTextEditor[Line].Length" returns the length of the "Line" line.
>
>Beware that MyTextEditor[Line] returns a virtual temporary object. You 
>must not store it.
>
>>
>> I working on a search function.  I can use Instr on TextEditor.Text
>to
>> find the appropriate text
>
>You must not use Instr(), it cannot handle UTF-8 text. Use 
>String.Instr() instead.
>
>Regards,
>
>-- 
>Benoît Minisini
>
>------------------------------------------------------------------------------
>Check out the vibrant tech community on one of the world's most 
>engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>_______________________________________________
>Gambas-user mailing list
>Gambas-user at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the User mailing list