VLink Mess Re: FindLinkedSingle ?
Ruslan Zasukhin
sunshine at public.kherson.ua
Mon Dec 12 13:29:10 CST 2005
On 12/12/05 7:42 AM, "Ed Kleban" <Ed at Kleban.com> wrote:
> Nope. The list below won't work. I just couldn't figure out before "Why in
> the world would you pass TableA and TableB arguments to FindLinked when the
> Vlink already knows what the tables are?"
>
> The answer of course is that it doesn't know what the tables are. a
> VBinaryLink knows, but the FindLinked method has been defined to work on all
> types of Vlinks including Foreign Keys and presumably ObjectPtr links.
>
> This is probably the source for what has resulted in such a confusing mess.
> Now I understand.
>
> I appreciate and admire the goal of having a single set of calls at the
> VLink method that are uniform and universal. On the other hand doing so
> has resulted in a call that has all sorts of messy problems.
I do not see any problems Ed.
You have link PersonePhone.
You can do 2 task:
1) you know some person recID and you want find its Phones:
linkPersonPhone.FindLinked( recid, tblPerson, tblPhone );
2) you know some phone and you want find persons that use it
linkPersonPhone.FindLinked( recid, tblPhone, tblPerson );
Easy and clean !!!
Where you see problems ?
--
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