Click or drag to resize

IUrlsAdd Method

Add web address to collection. Returns the new URL object. URLs are not saved until the owning object (the contact or project) is saved.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOUrl Add(
	string strUrl,
	string strDescr
)

Parameters

strUrl
Type: SystemString
A string representing the URL e.g. <A href="http://www.superoffice.com/"><a href="http://www.superoffice.com/">http://www.superoffice.com/</a></A>
strDescr
Type: SystemString
Descriptive text, e.g. SuperOffice ASA main web-site

Return Value

Type: SOUrl
SOUrl – The newly added URL
Examples

Add

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

This will add a new URL to the current contact.

VB
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    objSO.CurrentContact.Urls.Add "http://www.superoffice.com/", "SuperOffice ASA main web-site"
    MsgBox "An new URL is added to the current contact"
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also