[V4MD] deleteAllLinkedRecords

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Sep 12 10:50:15 CDT 2005


On 9/12/05 10:36 AM, "Ruslan Zasukhin" <sunshine at public.kherson.ua> wrote:

> 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

I have check code .....

We must not open this parameter at all to users.
So in the new versions we will remove it.
For now use FALSE for it


-- 
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]




More information about the Valentina-beta mailing list