[scilab-Users] global variable - Graphic interface
Jean-Louis Auge
Jean-Louis.Auge at grenoble.cnrs.fr
Sat Jan 15 14:46:23 CET 2011
I used the command 'global' but I surprised by its use.
Indeed, I have to define my variable as 'global' in the main program AND
in the function where it has to be computed.
Is it normal?
From my point of view, I thought that to define the global variable in
the main program was sufficient!
Nota: The function is a callback function from a pushbutton.
Regards,
JL.
Calixte Denizet a écrit :
> Hello Jean-Louis,
>
> Maybe in using the command 'global' (help global)
>
> Calixte
>
> Le vendredi 14 janvier 2011 à 23:26 +0100, Jean-Louis Auge a écrit :
>
>> Hi,
>>
>> I would like use the result from calculations made in a function called
>> by a pressbutton.
>> For that, I defined the result as a global variable so that all my
>> program sees it.
>> Unfortunately, the program does not see this global variable; as if it
>> cannot exit from the function.
>>
>> Is somebody have an idea on that?
>>
>>
>> Best regards.
>>
>> JL
>>
More information about the users
mailing list