Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Emergency! How do I put all these into one simple line!!

 
Logged in as: Guest
arrSession:exec spGetSession 2,7,60980
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Emergency! How do I put all these into one simple line!!
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Emergency! How do I put all these into one simple line!! - 6/3/2008 3:25:27 AM   
  lair360

 

Posts: 22
Score: 0
Joined: 5/16/2008
Status: offline
I was creating this script and look how big it is!
Is there a way to make this short as possible?

Please give me a hand here...I'm in pain and the VBScript is growing like hell!
---------------


      
 
 
Post #: 1
 
 RE: Emergency! How do I put all these into one simple l... - 6/3/2008 8:16:01 AM   
  ebgreen


Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
Well you have a couple of options. One is that you can put each entry that you want to delete into an array. This won't save you much in the way of actual code but it would make it a little more defined. Next, if the point is to delete all the values in a key, then you could just enumerate them and delete each one.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to lair360)
 
 
Post #: 2
 
 RE: Emergency! How do I put all these into one simple l... - 6/3/2008 9:02:31 AM   
  lair360

 

Posts: 22
Score: 0
Joined: 5/16/2008
Status: offline
Thanks for the reply.
You save my life! Nevertheless, I also read shakespears...so I know what you are saying!

Here is the code admin.
--------------------------------

      

(in reply to ebgreen)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [General Forum] >> Other Programming/Scripting Languages >> Emergency! How do I put all these into one simple line!! Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts