Click or drag to resize

IContactForeignKey Property

Get ForeignKeys linked to this contact Get the foreign key values for this contact. May be used to connect a contact to an external application where you need more settings

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOForeignKey ForeignKey { get; }

Property Value

Type: SOForeignKey
ForeignKey
Examples

ForeignKey

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
dim objso
set objso = CreateObject("superofficedb.database")
set objsoapp = CreateObject("superoffice.application")
If not (objSO is nothing) Then
    objso.login "<username>", "<password>"
    set mycontact = objso.getcontact(objsoapp.currentcontact.identity)
    mycontact.foreignkey.set "myapplication",  "mydevice", "mykey",  "this is my foreignkey"
    msgbox mycontact.name &  " has the following foreginkey set: " &  mycontact.foreignkey.get ("myapplication",  "mydevice", "mykey")
else
    msgbox "unable to connect to database"
end if
set objso = nothing

See Also