Click or drag to resize

IPersonForeignKey Property

ForeignKey object Get the foreign key values for this person. May be used to connect a person 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
SOForeignKey - the foreignKey values for this person
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 "<USERID>", "<password>"
    if objSOApp.CurrentPerson.Identity <> 0 then
        set myPerson = objSo.GetPerson(objSOApp.CurrentPerson.Identity)
        myPerson.ForeignKey.Set "MyApplication", "MyDevice", "MyKey", "This is my foreignKey"
        MsgBox myPerson.FirstName & " has the following foreginKey set: " & myPerson.ForeignKey.Get ("MyApplication", "MyDevice", "MyKey")
    else
        msgbox "Mark a person and try again"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also