Get
Returns a string value, the foreign key. This may be used by external application to store extra information
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntaxstring Get(
string application,
string devicename,
string keyname
)
Function Get (
application As String,
devicename As String,
keyname As String
) As String
Dim instance As IForeignKey
Dim application As String
Dim devicename As String
Dim keyname As String
Dim returnValue As String
returnValue = instance.Get(application,
devicename, keyname)
String^ Get(
[InAttribute] String^ application,
[InAttribute] String^ devicename,
[InAttribute] String^ keyname
)
Parameters
- application
- Type: SystemString
the external application - devicename
- Type: SystemString
the external device - keyname
- Type: SystemString
the name of the key where the value you want is stored
Return Value
Type:
StringString – the key
ExamplesGet
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information
dim objso
set objso = CreateObject("superofficedb.database")
set objsoapp = CreateObject("superoffice.application")
If not (objSO is nothing) Then
objso.login "<USERID>", "<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