Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-19-2012, 01:18 PM
lava lava is offline
Registered User
 
Join Date: Mar 2012
Posts: 14
clearing variable from memory

i want to clear the variable memory from enterd from user input

Quote:
ipaddress = crt.Dialog.Prompt("Enter IP address for the:")
crt.Screen.Send ipaddress & chr(13)
so i have entered the ip address for the first devices and when it's going to the next the first ip address still on the memory so that ip address show ip again, and didn't let me to enter new ip for the second device.

so my question is how i can clear the variable from the memory.

thanks
paul
Reply With Quote
  #2  
Old 03-19-2012, 05:29 PM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Greetings Paul,

Without seeing a little more code I'm hesitant to offer just an answer. I don't see how resetting the variable will help, but to reset a variable, set it to "".
ipaddress = ""
If that doesn't help, can you show a little more code and help me understand where/how it didn't let you enter a new IP for the second device?
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
  #3  
Old 03-19-2012, 07:58 PM
lava lava is offline
Registered User
 
Join Date: Mar 2012
Posts: 14
Quote:
ipaddress = ""
is work for me...thank you so very much!
Reply With Quote
  #4  
Old 03-20-2012, 09:41 AM
miked's Avatar
miked miked is offline
Registered User
 
Join Date: Feb 2004
Posts: 2,040
Excellent - thanks for confirming!
__________________
Mike
VanDyke Software
Technical Support
[http://www.vandyke.com/support]
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 08:58 PM.