Default sort order

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Dec 11 11:34:54 CST 2005


On 12/11/05 7:30 AM, "Ed Kleban" <Ed at Kleban.com> wrote:

Hi Ed,

>> So I enter the following links:
>>     LinkRecords( { 1, 4 } )
>>     LinkRecords( { 1, 5 } )
>>     LinkRecords( { 1, 6 } )
>>     LinkRecords( { 2, 6 } )
>>     LinkRecords( { 2, 4 } )
>>     LinkRecords( { 2, 7 } )
>> 
>> Now then, Is there a call I can make that will return me an ArraySet with
>> the children of I2 necessarily in the order that these relationships were
>> defined?
>> 
>> How about:
>> 
>>     anArraySet = aVLink.FindLinked( 2, TItems, Titems, kFromParentToChild )
>> 
>> Will this necessarily return anArraySet = { 6, 4, 7 }?
>> 
>> Or can I not assume the order of the elements in the returned anArraySet ?
>> 
> 
> Woops!  Since this is a M:M link, does "kFromParentToChild" have any meaning
> here?  

> How do I signify I want recId's for right links rather than left
> links for recId = 2 ?

Yes still have

I like this example:

    Table Person with recursive link HaveBorn

So we have here in fact link 2 : M which still is M : M.
Right?

Now let we take Person with RecId = 1024,
 Let this will be Ruslan.

        res = Born.FindLinked( 1024, Person, Person, ???? )

So whom you want find?

A) Children of Ruslan:

    childs = Born.FindLinked( 1024, Person, Person, kFromPArentToChilds)

b) Children of Ruslan:

     parents = Born.FindLinked( 1024, Person, Person, kFromChildsToParent)


-- 
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 mailing list