[Gambas-user] Isn't this a clear error?

Jussi Lahtinen jussi.lahtinen at ...626...
Thu Mar 12 16:28:39 CET 2009


Forgot to say...
Taking arguments like in example you described can be useful too.
Example;

SomeObject = ThisCollection[IntegerVariable]

You don't need to convert IntegerVariable to string before using it as key!


Jussi



On Thu, Mar 12, 2009 at 5:23 PM, Jussi Lahtinen
<jussi.lahtinen at ...626...> wrote:
> String.Left(String as String [, Length as Integer])
>
> Length is optional, then the only argument, 1 is taken as string.
> So result is "1".
> Everything seems to be correct... although it is little confusing that
> number 1 is taken as string without "".
>
>
> Jussi
>
>
>
> On Thu, Mar 12, 2009 at 12:33 PM, Rolf-Werner Eilert
> <eilert-sprachen at ...221...> wrote:
>> When programming, I typed
>>
>> IF String.Left(1) = "§" THEN txt$ = "§.."
>>
>> instead of
>>
>> IF String.Left(txt$, 1) = "§" THEN txt$ = "§.."
>>
>> but Gambas2 didn't show a mistake - is String.left(<length>) possible at
>> all, I mean without giving the string? The program ran through, it just
>> did not react to the condition and so stayed out of the THEN branch.
>>
>> Rolf
>>
>> ------------------------------------------------------------------------------
>> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
>> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
>> easily build your RIAs with Flex Builder, the Eclipse(TM)based development
>> software that enables intelligent coding and step-through debugging.
>> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>




More information about the User mailing list