<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, "info@vallemediatime.com" <info@vallemediatime.com> wrote:<BR>
<BR>
<FONT COLOR="#0000FF">> Hi Ruslan and Igor<BR>
> I've tried to add:<BR>
> link.deleteAllLinkedRecords(Person)<BR>
> into your Link_Binaty_Records example<BR>
> <BR>
> e.g<BR>
> <BR>
> on mouseUp me<BR>
> global gDb<BR>
> person = gDb.table("Person")<BR>
> if CheckValError() then exit<BR>
> phones = gDb.table("Phones")<BR>
> if CheckValError() then exit<BR>
> link = phones.link(1)<BR>
> if CheckValError() then exit<BR>
> <BR>
> link.deleteAllLinkedRecords(Person)<BR>
> ...<BR>
> end<BR>
> <BR>
> but I get this Script error: Wrong number of parameters<BR>
> if I change the line with:<BR>
> link.deleteAllLinkedRecords(Phones) I get the same error...<BR>
> why?<BR>
</FONT><BR>
I see it is declared as<BR>
<BR>
"deleteAllLinkedRecords object me, object table1, integer onDeletion, * <BR>
-- [symbol recursionDirection = #kFromParentToChild].\n"<BR>
<BR>
-- 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>