Click or drag to resize

IProjectForeignKey Property

Access Foreign keys linked to this object Get the foreign key values for this project

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>"
    if objsoapp.currentproject.identity  <> 0 then
        set myproject = objso.getproject(objsoapp.currentproject.identity)
        myproject.foreignkey.set "myapplication",  "mydevice", "mykey",  "this is my foreignkey"
        msgbox myproject.name &  " has the following foreginkey set: " &  myproject.foreignkey.get ("myapplication",  "mydevice", "mykey")
    else
        msgbox "make a project and  try again"
    end if
else
    msgbox "unable to connect to database"
end if
set objso = nothing

See Also