Category: >> ASP/VB Code >> Create an array from words in an HTML text box Bookmark and Share

<< lastnext >>

Snippet Name: Create an array from words in an HTML text box

Description: Create an array of words from a text entered in an HTML text input.

Also see:
» Auto-link text with a given set of
» Remove empty lines from text files
» Convert text to image in php
» Reading and Writing to text files ...
» Select text in a DIV, SPAN, or tab...
» Random Text in ASP
» Count all words in a string
» Regexp: Find and highlight repeate...
» Create an array from the lines of ...
» Reversing text command
» Convert Dollars And Cents Value to...
» Reserved Words In Javascript
» Create Filler Text
» Easily Change Text To Lowercase
» Truncate text while preserving HTM...
» Neatly trim a string to a set numb...
» Search All Words Of A String In my...
» Limit Text Area Characters
» Flip Text Upside Down
» Count words or terms
» Convert text to soundex
» Spell out numbers to words
» Show info on current context
» Censor Message Text
» Text to GIF
» Binary to Text / Text to Binary
» Return text between delimiters in ...
» Write text onto an image
» Put Cursor At Top Of Textarea

Comment: (none)

Language: VB
Highlight Mode: VB
Last Modified: December 03rd, 2010

Dim tmpArr
Dim I
tmpArray = Split(trim(request("txtFromPage")), " ")
For I = 0 To UBound(tmpArray)
    'collapse any multiple spaces entered
    tmpArray(I) = Trim(tmpArray(I))
'write the text back out to the page
For I = 0 To UBound(tmpArray)
     Response.Write (tmpArray(i) & " ")
There haven't been any comments added for this snippet yet. You may add one if you like.  Add a comment 
© | users online: 10