[Scilab-users] Using try and catch

laurent berger laurent.berger at univ-lemans.fr
Tue Apr 9 17:30:08 CEST 2013


Hi,
An example of try and catch for handling execption is 
clear
try
f1= 200;
A1=1;
f2=0;
A2= u;//u is undefined
catch
    [str,n,line,func]=lasterror();
    disp('ERREUR',str)
end

Everything is ok but I try 
clear
try
f1= 200;
A1=1;
f2=0;
A2= ;//Nothing on right side of =
catch
    [str,n,line,func]=lasterror();
    disp('ERREUR',str)
end

Scilab console is blocked.You have to used ctrlc C and abort. I do  not
understand why
Thanks you for your help




--
View this message in context: http://mailinglists.scilab.org/Utilisation-de-try-tp4026492p4026493.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.



More information about the users mailing list