V4RB 2.3 Changing VLink in Existing Databases
Ivan Smahin
ivan_smahin at valentina-db.com
Wed Apr 19 23:19:32 CDT 2006
Hello Bob,
Wednesday, April 19, 2006, 11:01:08 PM, you wrote:
> Sorry to be dense, but I'm having issue deciphering the
> documentation. Can someone give me some pseudo code that will take
> the 2nd VLink matching a certain criteria?
> Here's the details, my database is created via the class way so my
> objectPtr links are named generically "Link_XX" and I don't know what
> their names are beforehand.
> I need to find all links that have Left Table = "ATable" and Right
> Table = "BTable".
> The second one (assuming there are two of them) needs to be changed
> so that Left Table = "CTable", Right Table = "BTable".
Very "pseudo" code...
It could be something like this:
i = 0
loop( ++i <= BTable.LinkCount )
{
VObjectPtr lnk = BTable.Link(i) as VObjectPtr
if( lnk && lnk.Target == ATable )
{
lnk.Target = CTable
}
}
--
Best regards,
Ivan mailto:ivan_smahin ÎÁ valentina-db.com
More information about the Valentina-beta
mailing list