Can I pass the object textfield Name as a parameter
Hi there!
I have the following objects (1 & 2) that TestComplete has identified, which they refer to text fields on a window.
1. Sys.Process("GemCat_Gui").WinFormsObject("frmPatternMetaData").WinFormsObject("grpPatternID").WinFormsObject("txtPatterName")
2. Sys.Process("GemCat_Gui").WinFormsObject("frmPatternMetaData").WinFormsObject("grpPatternID").WinFormsObject("txtSAPInvestigationDescription")
As one can see, the only portion of the name that changes for each text field is the last part within quotes, that is, "txtPatterName" and "txtSAPInvestigationDescription".
Can one parameterize that piece which refers to the specific text field? I would hate to repeat this line of text as many times as for each text field.
Any ideas would be appreciated as to how I can accomplish that. I tried to concatenate a parameter but TestComplete does not like it.
Thank you in advance!
Miguel
you would found if googled :smileyindifferent: