Forum Discussion

praveen_l_singh's avatar
praveen_l_singh
Occasional Contributor
11 years ago

Unable to use Regular expression


Hi,



In my application, the decimal value is dynamic. i.e in the below statement the value "6" is dynamic. Is there any way I can use regular ecpression here?



I tried replacing 6 with *, [0-9]    but ut did not work. Please suggest.



Aliases.javaw.SwingObject("AdvancedSearchDialog", "Instrument Search: Please select a bond", 6)



  • Hi Praveen,


     


    The third parameter of the SwingObject method shows the index of the window. If you have one window with the Instrument Search: Please select a bond name, there is no need to use it. In this case, you can access the object in the following way:


    Aliases.javaw.SwingObject("AdvancedSearchDialog", "Instrument Search: Please select a bond")


     

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Praveen,


     


    The third parameter of the SwingObject method shows the index of the window. If you have one window with the Instrument Search: Please select a bond name, there is no need to use it. In this case, you can access the object in the following way:


    Aliases.javaw.SwingObject("AdvancedSearchDialog", "Instrument Search: Please select a bond")