Contributions
Help with custom Delphi ComboBox
I am trying to come up with some code that will work to select a specified value from a drop-down list. This is a home-grown control (called TTPDualLookup) that was based on a DevExpress ComboBox control. I'm using VBScript. The "DualLookup" seems to mean that the values in the drop down are concatenated from two sources (Vendor Code and Vendor Name, in this example). There are multiple objects for each combobox. The first is the one that contains the selection and also clicks to open the second object, which is the list that contains the concatenated objects. I've attached a txt copy of a short script that selects a value based on screen position, but that's not going to work for us. Also a screen shot of the field. Can anyone please help me get started on this? point me in the right direction? Explain why the vista.TcxPopupEditPopupWindow.TcxGrid object is at a higher level than the drop-down? and why it says it's a grid object when it really isn't? and how to look at the properties, methods, etc, of this object when they only display when the drop-down is activated (and it can not be activated when I leave the screen itself to look at the object browser). Or -- even better - tell me how to actually DO this? (please?) See the attachments and let me know if I need to go elsewhere with this? Thanks. Kathy15KViews0likes1CommentObject Required dbConnection
We're new to TestComplete and are trying to bring as much of our existing architecture over as possible. We use an MS-Access back end for data, and I'm right now writing and calling a sub that opens a connection to that database. The OPEN_CONNECTION function is called from another script (using the USEUNIT statement) and is not erroring. When I try to query that database, however, I get an exception error: Object Required dbConnection. The last line of code is the one erroring - can anyone help me figure this out? Oh, I have tried defining dbConnectionwithin the GET_DATA, Main, and the Common.OPEN_CONNECTION functions, but it doesn't appear to help. Thanks in advance for your help with a newbie question! 'USEUNIT Common Sub Main GET_DATA End Sub Sub GET_DATA Common.OPEN_CONNECTION VI_TESTSET = "CSS001" Log.Message("Test Set is: " & VI_TESTSET) Set rsTestSetDB = CreateObject("ADODB.Recordset") Set rsTestSetDB = dbConnection.Execute("SELECT * FROM TestSets WHERE TestSetID LIKE '" & VI_TESTSET & "%%% ' " & "ORDER BY TestSetID") End Sub16KViews0likes1Comment