Click or drag to resize

IProjectMemberForeignKey Property

ForeignKey Get the foreign key values for this project member

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
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>"
    set myProjectMembers = objSOApp.CurrentProject.Members
    for each myProjectMember in myProjectMembers
        myProjectMember.ForeignKey.Set "MyApplication", "MyDevice", "MyKey", "This is my foreignKey"
        MsgBox myProjectMember.person.FirstName & " has the following foreginKey set: " & myProjectMember.ForeignKey.Get ("MyApplication", "MyDevice", "MyKey")
    next
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also