jarnold615
13 years agoOccasional Contributor
Need to use wildcard in VCLObject for object identification
Hello - I'm using VBScrip to try to set the object identification for a window which has a variable full name like this:
.Process("tcs").VCLObject("frmSKEDWorksheet")
.Process("tcs").VCLObject("frmSKEDWorksheet_1")
.Process("tcs").VCLObject("frmSKEDWorksheet_2") I tried using the following code with a wildcard character inserted so that it could identify all the object names listed above:Set OSWWin = Sys.Process("tcs").VCLObject("frmSKEDWorksheet*") It doesn't seem to work though. There's no error, but the window isn't recognized. Do you have any suggestions?John
Sys.Process("tcs").VCLObject("frmSKEDWorksheet")
.Process("tcs").VCLObject("frmSKEDWorksheet")
Sys.Process("tcs").VCLObject("frmSKEDWorksheet_1")
.Process("tcs").VCLObject("frmSKEDWorksheet_1")
Sys.Process("tcs").VCLObject("frmSKEDWorksheet_2")
I tried using the following code with a wildcard character inserted so that it could identify all the object names listed above:
Set OSWWin = Sys.Process("tcs").VCLObject("frmSKEDWorksheet*")
It doesn't seem to work though. There's no error, but the window isn't recognized. Do you have any suggestions?
John
.Process("tcs").VCLObject("frmSKEDWorksheet_2") I tried using the following code with a wildcard character inserted so that it could identify all the object names listed above:Set OSWWin = Sys.Process("tcs").VCLObject("frmSKEDWorksheet*") It doesn't seem to work though. There's no error, but the window isn't recognized. Do you have any suggestions?John