Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need some help with syntax 1

Status
Not open for further replies.

atascoman

Technical User
Oct 10, 2003
868
US
Hello,

I am trying to create a script and I can't get the WaitForString line to see the output from the device I am writing the script for. This is the line from the controller that I need to write the WaitForString line to trigger from.

(WP651) (AP group "test") #

This is what I have written so far. The Devname variable listed here is used so the controller name, in this case WP651 can be stored in a variable since the WaitForString will need to see it for the script to work. I have it collected in an input box when the script starts. This variable changes based on which controller the script is ran on, so the name can't be hardcoded.

crt.Screen.WaitForString "(" & Devname & ") (AP group "& sAPgroup &") #"

I think the problem is the WaitForString is not recognizing the quotes around the sAPgroup variable that the controller is inserting. Is there a way to modify this line to see the quotes?
 
I have never seen such syntax: crt.Screen.WaitForString

You can see of the controller is inserting quotes into sAPgroup (and thus causing an issue) by simply replacing them with something else (e.g. a pipe "|"). It won't solve your problem but it may help realize a problem.

Code:
sAPgroup = replace(sAPgroup, chr(34), "|")

-Geates


"I do not offer answers, only considerations."
- Geates's Disclaimer

 
You wanted this ?
crt.Screen.WaitForString "(" & Devname & ") (AP group """ & sAPgroup & """) #"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
THanks PHV. That was it. I had tried double quotes and since it didn't work I went another direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top