V4RB2 vLink
erne
ernestogiannotta at tiscalinet.it
Thu Dec 30 09:17:27 CST 2004
on 29-12-2004 20:28, Ruslan Zasukhin at sunshine at public.kherson.ua wrote:
>> after all we are required to know the Index order of linked tables if
>> we must link records by:
>> vLink.LinkRecords( inRecIDs() as Integer )
>
> Agree. Index of table is strict thing.
> It correspond to the order of creation.
>
>> anyway, to specify the 2nd table seems redundant as we have:
>> vLink.DeleteLinkedRecords( inRecID as Integer, inTableA as VTable )
>> vLink.DeleteAllLinkedRecords( inTableA as VTable )
>>
>> so it should be enough:
>> vLink.FindLinked( inRecID as Integer, inTableA as [VTable or Integer] )
>> as VSet
>
> I see your point...and
>
>> unless vLink will be able to link more than 2 tables in the future
>
> Exactly! Bingo! :-)
>
>> in which case the LinkRecords, DeleteLinkedRecords and
>> DeleteAllLinkedRecords methods must be updated
>
> NO. because when link will have 3 branches, I still can say
>
> vLink.DeleteAllLinkedRecords( inTableA as VTable )
>
> And this means break links to ALL linked tables of TableA.
>
still
vLink.LinkRecords( inRecIDs() as Integer )
remains not consistent... it does not give way to specify link direction
should be
vLink.LinkRecords( inRecIDs() as Integer, inTableA as VTable, inTableB as
VTable )
just like in the vLink.FindLinked syntax
Cool Runnings,
Erne.
--
| e r | Ernesto Giannotta
| n e | Musical Box - a media store
More information about the Valentina-beta
mailing list