Link question

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Feb 13 12:12:39 CST 2007


On 13/2/07 7:25 PM, "Bart Pietercil" <bart.pietercil at gmail.com> wrote:

Hi Bart,

> Hi List,
> 
> given this code
> 
>    aTable = mybbDB.Table("members")
>    aTable.SetBlank(EVValueAccess.forAdd)
>    aTable.Field("LastName").Value = Lastname
>    aTable.Field("FirstName").Value = Firstname
>    aTable.Field("username").Value = loginname
>    aTable.Field("userpw").Value = loginpw
>    aTable.Field("member_type").Value = SuperUserID ---> this is an
> objectptr to member_types table
>    Try
>      newRecID = aTable.AddRecord()
>    Catch Err As VException
>      MsgBox(Err.Message)
>      Return False
>    End
> 
> 
> Do I still need to do this ?
> 
>    aLink = mybbDB.Link("members_type_to_members")
>    arLink(0) = SuperUserID
>    arLink(1) = newRecID
>    aLink.LinkRecords(arLink)
> 
> 
> Or is this Link information updated by me setting the objectpointer
> value in the members table

ObjectPtr-link can be used as usual field.
I.e. No need use 

>    aLink.LinkRecords(arLink)


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