[Gambas-user] Bad string conversion etc.

Rolf-Werner Eilert eilert-sprachen at ...221...
Wed Oct 1 12:34:35 CEST 2008


Doriano Blengino schrieb:
> Rolf-Werner Eilert ha scritto:

>> Maske.Index = CInt(wert[0] - 1)
>>

> I would write:
> 
>     Maske.Index = CInt(wert[0]) - 1

Aaaargh - ok :-) You're right. This way it runs flawlessly of course.

>     Maske.Index = wert[0] - 1
> 
> 
> To let this last line work, gambas should understand that the whole 
> expression to the right of the "=" should be an integer, and convert the 

No, it doesn't, same error message.

Anyway, it does run as above, now I just don't understand why it went in 
Gambas1 as it was actually wrong...

Thank you!

Rolf




More information about the User mailing list