Showing tag results for scripting techniques

Jun 10, 2005
Post comments count0
Post likes count0

How Can I Determine the Number of Items Generated by the Split Function?

ScriptingGuy1

Hey, Scripting Guy! I know I can use the Split function to split a line into individual items. But how can I tell how many “splits” I ended up with; that is, how many individual items did I generate from a single line?-- SA Hey, SA. For those of you who are relative newcomers to scripting (or those of you who’ve never used the Split function) le...

Scripting Guy!scripting techniquesVBScript
Jun 9, 2005
Post comments count0
Post likes count0

How Can I Clear a Text Box in an HTA?

ScriptingGuy1

Hey, Scripting Guy! How can I clear a text box in an HTA?-- CB Hey, CB. You know, it’s been awhile since we’ve answered a question about HTAs (HTML Applications). And we could probably get away with that except for the fact that a month or so ago we debuted the HTA Developer’s Center, something which implied that we were going to try and do a be...

Scripting Guy!scripting techniquesVBScript
Jun 7, 2005
Post comments count0
Post likes count0

How Can I Tally Items in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I tally items in a text file?-- JA Hey, JA. If we understand you correctly you have a text file that consists of a number of lines, each line representing a particular item. Just to keep things simple, let’s say your text file consists of city names:City Seattle Seattle Los Angeles Chicago Seattle Los Angeles Pittsbur...

Scripting Guy!scripting techniquesVBScript
Jun 2, 2005
Post comments count0
Post likes count0

How Can I Display More Than 1,023 Characters in a Custom Message Box?

ScriptingGuy1

Hey, Scripting Guy! I need to create a custom alert box that has over 1,000 characters in it. The message box used by Wscript.Echo can hold all the characters, but I can’t change the message box title. I can change the title of a message box used by the VBscript MsgBox function, but it won’t hold all my characters. Can you help?-- KB Hey, KB. Ta...

Scripting Guy!scripting techniquesVBScript
May 20, 2005
Post comments count0
Post likes count0

How Can I Remove the Last Carriage Return-Linefeed in a Text File?

ScriptingGuy1

Hey, Scripting Guy! How can I remove the last carriage return-linefeed in a text file?-- LEK Hey, LEK. From the rest of your email you note that you’re using the FileSystemObject to read a text file, then using the contents of that text file as a query in another application. Unfortunately, though, the text file invariably has a carriage return-...

Scripting Guy!scripting techniquesVBScript