[Gambas-user] Bug in update arrays ?

Benoit Minisini gambas at ...1...
Thu Mar 29 13:53:16 CEST 2007


On jeudi 29 mars 2007, Steven Lobbezoo wrote:
> VSel AS String = "1"
> extras AS String[] = ["0", "0", "0", "0", "0", "0", "0"]
> extrastag AS String[] = ["0", "0", "0", "0", "0", "0", "0"]
>
>
> PUBLIC SUB Extra_Click()
> DIM i AS Integer
>
>   i = Val(LAST.Name)
>   IF LAST.Value THEN
>     extras[i - 1] = "1"
>   ELSE
>     extras[i - 1] = "0"
>   END IF
> END

Please post a full project and not a piece of code, otherwise I can't 
understand what happens.

Regards,

-- 
Benoit Minisini




More information about the User mailing list