<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I think it depends on the nature of the error made by the user :<br>
<br>
<tt>--> myfunction( first_arg , 2 )<br>
 => it should return <i>"myfunction: Wrong type for second input
argument: 'on' or 'off' expected."</i></tt><br>
<br>
<tt>--> myfunction( first_arg , ['on','off','on'] )<br>
</tt><tt> => it should return <i>"myfunction: Wrong size for second
input argument: 'on' or 'off' expected."</i></tt><br>
<br>
<tt>--> myfunction( first_arg , 'test' )<br>
</tt><tt> => it should return <i>"myfunction: Wrong value for
second input argument: 'on' or 'off' expected."<br>
<br>
</i></tt>Regards,<br>
<br>
Pierre<br>
<br>
<br>
Shiqi Yu a écrit :
<blockquote
 cite="mid:296f12ef0805232304y306de445jf1d5e679a5e8a40f@mail.gmail.com"
 type="cite">Dear all,<br>
  <br>
I'm translating Scilab messages into Chinese, but some messages
confused me, such as in GUI module:<br>
  <code>MSG 69: %s</code>: Wrong size for second input argument: 'on'
or 'off' expected.<br>
  <code>MSG 71: </code><code>%s</code>: Wrong type for second input
argument: 'on' or 'off' expected.<br>
  <br>
The messages should be displayed when a user does not input 'on' or
'off'. It's a wrong type error and not a wrong type error.<br>
So I think MSG 69 is incorrect. <br clear="all">
  <br>
There are also some other this kind of messages.<br>
-- <br>
Shiqi Yu<br>
Shenzhen Institute of Advanced Technology, <br>
Chinese Academy of Sciences.<br>
Homepage: <a moz-do-not-send="true" href="http://yushiqi.cn">http://yushiqi.cn</a><br>
</blockquote>
<br>
</body>
</html>