[V4MD] pointer at the same table by binary_link

info at vallemediatime.com info at vallemediatime.com
Mon Sep 12 23:48:04 CDT 2005


> Another note.
> I see that you use intensively the global variables.
> This is danger.
I agree 

> better
> ----------------
> on addLink( inKinkName, inTableName )
> 
>   link = gDb.link( inLinkName )
> 
>   a = gDB.table( inTableName ).RecID
>   b = value( member( "Tab_B_ID" ).text )
>  
>   link.linkRecords(a, b)
>   getLinkCount
> 
> end
> ----------------
> 
> Better because it is more flexible and more safe
Ok, I understand, thanks for this usefull help
Paolo 


More information about the Valentina-beta mailing list