[Gambas-user] whats different between "left$" and "left" string functions

willy at ...3474... willy at ...3474...
Mon Dec 14 23:36:16 CET 2015


On 2015-12-14 23:24, Tobias Boege wrote:
> On Mon, 14 Dec 2015, willy at ...3474... wrote:
>> On 2015-12-14 23:01, PICCORO McKAY Lenz wrote:
>> > i think the problem are again in documentation or some misc-information
>> >
>> > search at documentation seem that the difference are the manipulation
>> > respect set of
>> >
>> > one its for ACII charset and the other seem are for UTF-8
>> >
>> > BUT DOCUMENTATIION refers without linking.. i link with a "see also"
>> > and "advertise"
>> >
>> > if i are correct please benoit guide me!
>> >
> 
> Please take extra care to not make the docs by any chance worse with 
> your
> English, and don't write something which you are not sure about.

I've corrected the English and clarified things a bit, to make a bit 
more clear that Left <> String.Left (same for Mid and Right).
Feel free to correct, if needed.


>> So, I guess the question of removal is no longer an issue as they are
>> two different functions :)
>> 
> 
> No, there are these two kinds of string manipulation functions:
> 
>  1. The intrinsic functions which come in pairs: Left$(), Left(), 
> Mid$(),
>     Mid(), etc. which are built into the language, and
>  2. The methods of the String class in the gb component.
> 
> Modulo naming, the functions of the first kind are identical -- which 
> was
> the original question I think. Only in the mail quoted above PICCORO 
> mixed
> the second kind in.

I get it, in short: String.Left() <> Left() = Left$()

:)





More information about the User mailing list