<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 29/09/2013 11:37, Stefan Du Rietz a
écrit :<br>
</div>
<blockquote cite="mid:5247F4C2.8010200@durietz.se" type="cite">Error
setting a property of a graphics entity with the dot operator on a
handle from a calling function
<br>
</blockquote>
.<br>
with <br>
<pre style="font-style: normal; font-size: 14px;"><tt><span style="color:rgb(176,24,19);">function</span></tt><tt> </tt><tt><span style="color:rgb(0,0,0);text-decoration:underline;">testhandle2</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">set_a_is_a</span></tt><tt><span style="color:rgb(0,0,0);">, </span></tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">a</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt>
</tt><tt><span style="color:rgb(160,32,240);">if</span></tt><tt> </tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">set_a_is_a</span></tt><tt>
</tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">a</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">=</span></tt><tt> </tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">a</span></tt><tt>
</tt><tt><span style="color:rgb(160,32,240);">end</span></tt><tt>
</tt><tt><span style="color:rgb(50,185,185);">disp</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt><span style="color:rgb(188,143,143);">typeof(a) = </span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">+</span></tt><tt> </tt><tt><span style="color:rgb(50,185,185);">string</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(174,92,176);text-decoration:underline;">typeof</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">a</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt>
</tt><tt><span style="color:rgb(50,185,185);">set</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">a</span></tt><tt><span style="color:rgb(0,0,0);">,</span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt><span style="color:rgb(188,143,143);">user_data</span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt><span style="color:rgb(0,0,0);">,</span></tt><tt><span style="color:rgb(188,143,143);">2</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt><span style="color:rgb(0,0,0);">;</span></tt><tt>
</tt><tt><span style="color:rgb(50,185,185);">disp</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt><span style="color:rgb(188,143,143);">typeof(a) = </span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">+</span></tt><tt> </tt><tt><span style="color:rgb(50,185,185);">string</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(174,92,176);text-decoration:underline;">typeof</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">a</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt>
</tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">a</span></tt><tt><span style="color:rgb(92,92,92);">.</span></tt><tt><span style="color:rgb(170,170,170);">user_data</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">=</span></tt><tt> </tt><tt><span style="color:rgb(188,143,143);">3</span></tt><tt><span style="color:rgb(0,0,0);">;</span></tt><tt>
</tt><tt><span style="color:rgb(50,185,185);">disp</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt><span style="color:rgb(188,143,143);">typeof(a) = </span></tt><tt><span style="color:rgb(188,143,143);">"</span></tt><tt> </tt><tt><span style="color:rgb(92,92,92);">+</span></tt><tt> </tt><tt><span style="color:rgb(50,185,185);">string</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(174,92,176);text-decoration:underline;">typeof</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(131,67,16);font-weight:bold;">a</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt>
</tt><tt><span style="color:rgb(50,185,185);">delete</span></tt><tt><span style="color:rgb(74,85,219);">(</span></tt><tt><span style="color:rgb(0,0,0);">f</span></tt><tt><span style="color:rgb(74,85,219);">)</span></tt><tt>
</tt><tt><span style="color:rgb(176,24,19);">endfunction</span></tt></pre>
we get<br>
<br>
-->testhandle(%t) <br>
typeof(a) = handle <br>
typeof(a) = handle <br>
typeof(a) = handle <br>
<br>
-->testhandle(%f)<br>
typeof(a) = handle <br>
typeof(a) = handle <br>
typeof(a) = st <br>
<br>
Indeed, it is a very weird behavior.<br>
<br>
</body>
</html>