|
Bluepoint Design |
![]() |
| Practical Cost-Effective Solutions | |
| Undefined Variable Error |
|
|
|
In a macro I
set a var to the top window title with a few other things and log it to
file. On the TS right now I have a window title "http://192.168.1.99/PCPro.htm%3FGOTO%2811%29
- Windows Internet Explorer" and it’s causing MEP to
throw an undefined variable error. I guessed it was our old friend and
just sat down to ‘fix’ it but things got weird. First I tried replicating the window title on my Vista workstation which now has 4.0.4.3 but I can’t replicate under any circumstances. I then went back to the TS machine running 4.0.4.1 and did an F9 run from the scripting editor. Guess what? It ran! However in my log file there was no entry. Huh? Eventually I discovered that if I had the scripting window open at all and ran the macro as F9 or normally I would not get the scripting error but I was also not seeing the results being logged to file. I did a simple replace all command to replace all the percent signs with hyphens and it’s working now but I would like to know how I should wrap this up. I was wondering if you guys have changed something to ‘fix’ this in the 4.0.4.3. IE should I change the macro permanently or should I simply wait for the next release. Also it seems that the times I’ve seen this is only when there are 3 percent signs. I don’t know if that has anything to do with anything. Maybe if your familiar with the mechanisms here you could tell me so I could understand. I’m thinking I might want to substitute with a pipe or something, create the output string and then replace again to put the percents back. However before I start testing with that I would like to understand what’s functionally happening here. |
|
|
|
|
||
| Practical Cost-Effective Solutions | |||