How to copy and use code from OTA reference

Posted: December 27, 2013 in Uncategorized

Imports TDAPIOLELib

Module Module1

Sub Main()

Dim tdc, msg
tdc = CreateObject(“TDApiOle80.TDConnection”)
tdc.InitConnectionEx(“http://almdev/qcbin”)
‘Note: For Quality Center, connect by using the URL below:
‘td.InitConnectionEx “http://:port/qcbin”
tdc.ConnectProjectEx(“DEFAULT”, “AMGEN_ERP”, “svanumu”, “XYZ”)

/******** CODE FROM OTA FILE *********************/
Dim custom As Customization
custom = tdc.Customization
Dim lists As CustomizationLists
lists = custom.Lists
‘Try
lists.AddList(“Srihari”)
‘Catch
‘End Try
custom.Commit()

/******* END OF CODE FROM OTA FILE ****************/

End Sub

End Module

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s