[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error Loop Variable cannot be global
[Thread Prev] | [Thread Next]
- Subject: Re: Error Loop Variable cannot be global
- From: Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
- Date: Mon, 18 Mar 2024 20:05:48 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 18/03/2024 à 19:46, Mayost Sharon a écrit :
Hello I try to run this code: ' Gambas module file Public $vList As String[] = ["a", "b", "c"] Public $vStr As String Public Sub Main()For Each $vStr In $vListDebug $vStr Next End and it gives an error: Error Loop Variable cannot be global Thanks
This is by design, and was done for performance reasons. Regards, -- Benoît Minisini.
Error Loop Variable cannot be global | "Mayost Sharon" <sharon@xxxxxxxxx> |