Forum Discussion

BernardFanthom's avatar
BernardFanthom
Contributor
10 years ago

Combobox selection from a VB6 window

Hi,

 

I am testing 2 different versions of the same app with a client end written in Visual Basic 6. A Combox selection is failing (cboXField command). When I check and compare the old with the new I get the following:

 

OLD:

Aliases.QLX.frmQLXMain.MDIClient.wndDBasMdiChildClass5.DBasMdiChildClass2.

frmEHGM101.tabMain.SSActiveTabPanel1.Frame6.cboCriteria.cboXField

 

NEW:

Aliases.QL .frmQLXMain.MDIClient.wndDBasMdiChildClass .DBasMdiChildClass2.

frmEHGM101.tabMain.SSActiveTabPanel1.Frame6.cboCriteria.cboXField

 

The older object differs by having an additional 2 characters (highlighted).

 

Can I "wildcard" this, or by any other means make changes so as my scripts will recognise both versions of the Combobox?

  • Hi, 

    Yes you can use wildcard in name mapping 

    you may use it where "5" is appeared.

    For me , it seems to be your application name is QL. and re-named old one to QLX...if  that the case you may have to change in lot of places.

    better run with original name two times ..could save you from trouble of changes.

2 Replies

  • NisHera's avatar
    NisHera
    Valued Contributor

    Hi, 

    Yes you can use wildcard in name mapping 

    you may use it where "5" is appeared.

    For me , it seems to be your application name is QL. and re-named old one to QLX...if  that the case you may have to change in lot of places.

    better run with original name two times ..could save you from trouble of changes.

    • BernardFanthom's avatar
      BernardFanthom
      Contributor

      Thanks for your response NiShera,

       

      It is interesting what you had to say about the executable changing name. I think that may influence the name of a lot of comboboxes and other screen entries.