Hi,
Rolf-Werner Eilert a écrit :
> 2. Here "Maske" is a tabstrip. First it is checked that it has enough
> tabs. Then the "current" tab is set.
>
> IF CInt(wert[0]) > Maske.Count THEN Maske.Count = CInt(wert[0])
> Maske.Index = CInt(wert[0] - 1)
>
> Gambas will stop at the second line complain
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, ga
Rolf-Werner Eilert ha scritto:
> Still trying to convert a Gambas1 app to Gambas2. Basically, it begins
> to run. However, there are strange error message at some points, and I
> do not understand what causes them.
>
> IF CInt(wert[0]) > Maske.Count THEN Maske.Count = CInt(wert[0])
> Maske.Index
Now I'm trying to convert a project from Gambas1 to Gambas2...
There is a string array "listedat[]" which I want to sort. The original
code was
listedat.Sort(gb.Language)
Gambas2 says "Bad string conversion", but I can't detect anything wrong
here, the editor proposes to write it this way.
So
Benoit Minisini schrieb:
> On mercredi 01 octobre 2008, Rolf-Werner Eilert wrote:
>> Still trying to convert a Gambas1 app to Gambas2. Basically, it begins
>> to run. However, there are strange error message at some points, and I
>> do not understand what causes them.
>>
>> 1. This line
>>
>> po =
On mercredi 01 octobre 2008, Rolf-Werner Eilert wrote:
> Still trying to convert a Gambas1 app to Gambas2. Basically, it begins
> to run. However, there are strange error message at some points, and I
> do not understand what causes them.
>
> 1. This line
>
> po = links.Find(wert[8], gb.Language)
>
Still trying to convert a Gambas1 app to Gambas2. Basically, it begins
to run. However, there are strange error message at some points, and I
do not understand what causes them.
1. This line
po = links.Find(wert[8], gb.Language)
results in "Bad string conversion". Strange to me, as I do not se