View Single Post
  #6  
Old 04-12-2021, 02:25 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,099
Quote:
Originally Posted by tdubsley View Post
I'm getting a runtime error on line 99 where you have

Code:
cResponses = CreateObject("Scripting.Dictionary")
The error I'm getting is:

"Error: Wrong number of arguments or invalid property assignment: 'cResponses'"

Any feedback on what I can do to get past this error?
Looks like a typo in the script example. I'm sorry about that.

Try adding the keyword "Set" to the very beginning of that line, so it reads like this:
Code:
    nTimeout = 30
    Set cResponses = CreateObject("Scripting.Dictionary")
    cResponses.Add "1", "CONNECT"
    cResponses.Add "2", "BUSY"
    cResponses.Add "3", "NO DIAL TONE"
    cResponses.Add "4", "NO CARRIER"
Does that allow you to move forward?

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote