SHARE
Facebook X Pinterest WhatsApp

Utilizing The Split Function Page 2

Jul 20, 2010
ServerWatch content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More



Watkins

corner.jpg (739 bytes) Utilizing The Split Function corner2.jpg (786 bytes)

Back to the article: click here

Here is an example of how the script works. Enter a
several stock quotes below seperated by commas and then submit it. For example: “pep,
tgo, yum, dg” would be a correct example, but “pep tgo yum dg” would not.
In a follow up to this article, I will be showing you how to let users enter the
information almost anyway they want and still let it come out correct on the backend.


You entered the following:
255 then
response.write “Your string was too big. This limitation is only here for the purpose of server performance. This is not the limitation of the split function, infact, I do know the limitation. Heck, maybe there isn’t. :)”
elseif len(strStockQuotes) = 0 or isNull(strStockQuotes) then
response.write “”
else
araStockQuotes = split(strStockQuotes, “,”)

intElements = ubound(araStockQuotes) ‘ Get the number of elements.

response.write “


For i = 0 to intElements
strStockQuote = araStockQuotes(i)
response.write strStockQuote & “

Next
response.write “


end if
%>

Recommended for you...

What Is a Container? Understanding Containerization
What Is a Print Server? | How It Works and What It Does
Nisar Ahmad
Dec 8, 2023
What Is a Network Policy Server (NPS)? | Essential Guide
Virtual Servers vs. Physical Servers: Comparison and Use Cases
Ray Fernandez
Nov 14, 2023
ServerWatch Logo

ServerWatch is a top resource on servers. Explore the latest news, reviews and guides for server administrators now.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.