[V4MD] deleteAllLinkedRecords
Ruslan Zasukhin
sunshine at public.kherson.ua
Mon Sep 12 10:36:17 CDT 2005
On 9/12/05 9:57 AM, "info at vallemediatime.com" <info at vallemediatime.com>
wrote:
> Hi Ruslan and Igor
> I've tried to add:
> link.deleteAllLinkedRecords(Person)
> into your Link_Binaty_Records example
>
> e.g
>
> on mouseUp me
> global gDb
> person = gDb.table("Person")
> if CheckValError() then exit
> phones = gDb.table("Phones")
> if CheckValError() then exit
> link = phones.link(1)
> if CheckValError() then exit
>
> link.deleteAllLinkedRecords(Person)
> ...
> end
>
> but I get this Script error: Wrong number of parameters
> if I change the line with:
> link.deleteAllLinkedRecords(Phones) I get the same error...
> why?
I see it is declared as
"deleteAllLinkedRecords object me, object table1, integer onDeletion, *
-- [symbol recursionDirection = #kFromParentToChild].\n"
-- Removes all records linked by this Link to the any record of table
tableA.
So here 2 required parameters
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macserve.net/pipermail/valentina-beta/attachments/20050912/2bb54a8c/attachment-0001.html
More information about the Valentina-beta
mailing list