Forum Discussion
Could you give us a screenshot? It helps if we can see what you are talking about.
Yes, I guess it is somewhat of a question that goes back many versions but,
way back in the day, when recording, it would declare the variables using 'p', 'w', 'w2' etc., such as in:
Sub Test4
Dim p
Dim w
Dim w2
Set p = Aliases.Sys.MyProgram
Call p.frmMain.MainMenu.Click("File|Version Info")
Set w = p.VBObject("dlgVersion")
Set w2 = w.VBObject("vsfVer")
Call w2.Click(73, 105)
w.VBObject("cmdClose").ClickButton
End Sub
In later versions, it started declaring the variables with names/types (control, control2, etc).
Sub Test1
Dim MyProgram
Dim control
Dim control2
Set MyProgram = Aliases.MyProgram
Call MyProgram.frmMain.MainMenu.Click("File|Version Info")
Set control = MyProgram.dlgVersion
Set control2 = control.vsfVer
Call control2.Click(64, 73)
control.cmdClose.ClickButton
End Sub
- tristaanogre8 years agoEsteemed Contributor
I think, in later versions, that entire option has been deprecated. You either record with TC creating variables based upon object type... or you don't record with those variables at all. There's no longer an option for the P's and W's.
(BTW, I remember those days... AQTest version 1.51 was when I started using that stuff and had P's and W's all over the place...)
- bknutson8 years agoContributor
I started using TC back with Version 6 so not knowing much better, I wound up with the p's and w's.
I have upgraded all the way through the years, currently on 12.2, and recording for me still gives me the p's and w's.
I set up a new machine to test some different functionality that we are looking at and it does not record with the p's and w's. I have some co-workers that are going to get involved so, we were going to look at different options.
I am pretty certain that if I export my settings from one of my 'live' machines which gives the p's and w's and import those settings into the new machine that I will then get p's and w's but, I would rather be able to turn the 'feature' on and off.
I could have swore there was an option for it. I wish I could remember what version changed this.
Related Content
- 7 months ago
Recent Discussions
- 13 hours ago