<HTML>
<HEAD>
<TITLE>Re: [V4MD] deleteAllLinkedRecords</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>On 9/12/05 9:57 AM, &quot;info@vallemediatime.com&quot; &lt;info@vallemediatime.com&gt; wrote:<BR>
<BR>
<FONT COLOR="#0000FF">&gt; Hi Ruslan and Igor<BR>
&gt; I've tried to add:<BR>
&gt; link.deleteAllLinkedRecords(Person)<BR>
&gt; into your Link_Binaty_Records example<BR>
&gt; <BR>
&gt; e.g<BR>
&gt; <BR>
&gt; on mouseUp me<BR>
&gt; global gDb<BR>
&gt; person = gDb.table(&quot;Person&quot;)<BR>
&gt; if CheckValError() then exit<BR>
&gt; phones = gDb.table(&quot;Phones&quot;)<BR>
&gt; if CheckValError() then exit<BR>
&gt; link = phones.link(1)<BR>
&gt; if CheckValError() then exit<BR>
&gt; <BR>
&gt; link.deleteAllLinkedRecords(Person)<BR>
&gt; ...<BR>
&gt; end<BR>
&gt; <BR>
&gt; but I get this Script error: Wrong number of parameters<BR>
&gt; if I change the line with:<BR>
&gt; link.deleteAllLinkedRecords(Phones) I get the same error...<BR>
&gt; why?<BR>
</FONT><BR>
I see it is declared as<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&quot;deleteAllLinkedRecords object me, object table1, integer onDeletion, * <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- [symbol recursionDirection = #kFromParentToChild].\n&quot;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;-- Removes all records linked by this Link to the any record of table tableA.<BR>
<BR>
<BR>
So here 2 required parameters<BR>
<BR>
<BR>
<BR>
-- <BR>
Best regards,<BR>
<BR>
Ruslan Zasukhin<BR>
VP Engineering and New Technology<BR>
Paradigma Software, Inc<BR>
<BR>
Valentina - Joining Worlds of Information <BR>
<a href="http://www.paradigmasoft.com">http://www.paradigmasoft.com</a><BR>
<BR>
[I feel the need: the need for speed]<BR>
</SPAN></FONT>
</BODY>
</HTML>