IDatabaseGetSaleStakeholder Method |
Get an existing SaleStakeholder by its salestakeholder_id
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxSOSaleStakeholder GetSaleStakeholder(
int SaleStakeholderId
)
Function GetSaleStakeholder (
SaleStakeholderId As Integer
) As SOSaleStakeholder
Dim instance As IDatabase
Dim SaleStakeholderId As Integer
Dim returnValue As SOSaleStakeholder
returnValue = instance.GetSaleStakeholder(SaleStakeholderId)
SOSaleStakeholder^ GetSaleStakeholder(
[InAttribute] int SaleStakeholderId
)
Parameters
- SaleStakeholderId
- Type: SystemInt32
Return Value
Type:
SOSaleStakeholderSOSale – a sales record
ExamplesGet the sale with id = 2
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
dim objso
dim objsale
set objso = CreateObject("superofficedb.database")
If not (objSO is nothing) Then
objso.login "<userid>", "<password>"
set objsale = objso.getsale(2)
msgbox "sale with sale_id = 2: " & objsale.saletext & " Amount: " & objsale.amount
else
msgbox "unable to connect to database"
end if
set objso = nothing
See Also