[V4RB] binarylink concept question

Ruslan Zasukhin sunshine at public.kherson.ua
Sun Aug 21 22:50:45 CDT 2005


On 8/21/05 7:22 PM, "Peter Salomon" <peter.salomon at gmx.net> wrote:

Hi Peter,

> Hi Rulan,
> 
> hmm, i agree.
> but this could be also done by symbols (as example)
> 
> resSetOnTableB = LinkA_B.findallLinked(EVDirection.kLeft / k.Right)

Left right? But how you can remember (know) which table is on left or right
for THIS link ?

This is why we ask you EXPLICITLY show tables.
    - Never mind which one is left right.
    - you solve some task. You think:
        I have persones, I want find phones...
        so:   

        res = FindAllLinked( person, phones )
 
No way to make a mistake. :-)


> this way i wouldn´t need to use tableobjects in every handler where i
> only use links...
> 
> 
> Regards,
> 
> Peter Salomon
> Hannover, Germany
> 
> peter.salomon at gmx.net
> 
> 
> Am 21.08.2005 um 17:58 schrieb Ruslan Zasukhin:
> 
>> On 8/21/05 6:11 PM, "Peter Salomon" <peter.salomon at gmx.net> wrote:
>> 
>> Hi Peter,
>> 
>> 
>>> i´m just asking myself:
>>> 
>>> if i have created a binary link between tableA and tableB, created
>>> as:
>>> 
>>> LinkA_B = new VBinaryLink("LinkA_B", TblA, TblB, EVLinkType.kOne,
>>> EVLinkType.kMany)
>>> 
>>> now i can link records:
>>> 
>>> recs(0) = 1
>>> recs(1) = 1
>>> 
>>> LinkA_B.linkrecords(recs)
>>> 
>>> 
>>> but if i need to know the linked records i have to do:
>>> 
>>> resSet = LinkA_B.findallLinked(TblA, TblB)
>>> 
>>> 
>>> my question: why must i tell the link again its tables? Shouldn´t the
>>> link know its tables?
>>> 
>> 
>> First of all Tables show direction.
>> 
>> 
>>   resSetOnTableB = LinkA_B.findallLinked(TblA, TblB)
>> 
>>   resSetOnTableA = LinkA_B.findallLinked(TblB, TblA)
>> 
>> And as you see resulted set of records also differ.

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