Set
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
Syntaxvoid Set(
string application,
string devicename,
string keyname,
string Value
)
Sub Set (
application As String,
devicename As String,
keyname As String,
Value As String
)
Dim instance As IForeignKey
Dim application As String
Dim devicename As String
Dim keyname As String
Dim Value As String
instance.Set(application, devicename,
keyname, Value)
void Set(
[InAttribute] String^ application,
[InAttribute] String^ devicename,
[InAttribute] String^ keyname,
[InAttribute] String^ Value
)
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 - Value
- Type: SystemString
the value you want to store
ExamplesSet
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