Link question

Bart Pietercil bart.pietercil at gmail.com
Tue Feb 13 11:25:49 CST 2007


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

TIA

BArt


More information about the Valentina mailing list