Elipse Knowledgebase



KB-32719: Extracting characters from the left or from the right with VBScript

Question:

How can I extract a certain amount of characters from a script's left or right? Should I use VBScript's Mid function, or is there another way?

Solution:

There is no need to use Mid function for this: VBScript has two functions, called Left and Right, which are responsible for extracting characters from the string's left and right, respectively. Just pass the string and the number of characters to be extracted.
For further information, please refer to VBScript's Manual.



Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

No visitor comments posted. Post a comment

Post Comment for "KB-32719: Extracting characters from the left or from the right with VBScript"

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.

   Name:
   Email:
* Comment:
* Enter the code below:

 

Article Details

Last Updated
23rd of July, 2010

Autor
Renan de Rossi

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

No users have voted.

How would you rate this answer?




Thank you for rating this answer.

Continue