[Gambas-user] Bug in update arrays ?

Steven Lobbezoo steven at ...1652...
Thu Mar 29 12:50:15 CEST 2007


Found it :

I had an asignment in an other routine as follows

extrastag = extras

After that the assigment stays (it redefines extrastag)
stange behavour !!!

Steven
 

Le jeudi 29 mars 2007 12:39, Steven Lobbezoo a écrit :
> Hi,
>
> I don't get it, i did the following :
>
> 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
>
> as the routine Extra_Click gets executed, extras and extrastag are both
> updated.
>
> I suppose this is wrong.
>
> Latest Gambas, latest suse
>
> Steven
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> 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