473,473 Members | 1,959 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Can anyone tell me about the usage of split function in Asp with Example ?

49 New Member
Can anyone tell me about the usage of split function in Asp with Example ?

i done one project using split function.and i have some problems regarding storing data in data base.I use there variables.the data in the two variables is stored correctly.But the third variable data is stored some where. So please tell me some different tech. oh using split function in ASP using VB.NET.

thanks,
Aug 29 '08 #1
5 2210
jhardman
3,406 Recognized Expert Specialist
sure .
Aug 29 '08 #2
Krandor
50 New Member
Expand|Select|Wrap|Line Numbers
  1. Dim v_Results
  2. Dim s_Text
  3.  
  4.     s_Text = "Apples;Oranges;Pears;Bananas"
  5.     v_Results = Split(s_Text, ";", , vbTextCompare)
  6.    Response.write  v_Results(0) & "<BR>" & v_Results(1) & "<BR>" & v_Results(3)
  7.  
In this case it is splitting on the semi colon(;). Everything to the left of the delimiter (the semi colon) is put into one element of the array (v_Result).

It is importnat to note that the array is zero based. Meaning that the first element is zero and not 1 as most people would suppose.
Aug 29 '08 #3
nagmvs
49 New Member
<code>
Dim v_Results
Dim s_Text

s_Text = "Apples;Oranges;Pears;Bananas"
v_Results = Split(s_Text, ";", , vbTextCompare)
Response.write v_Results(0) & "<BR>" & v_Results(1) & "<BR>" & v_Results(3)
</code>
In this case it is splitting on the semi colon(;). Everything to the left of the delimiter (the semi colon) is put into one element of the array (v_Result).

It is importnat to note that the array is zero based. Meaning that the first element is zero and not 1 as most people would suppose.


Thanku sir, Thanku very much.This code is very useful to understand the Split concept.Thanku .
Aug 30 '08 #4
nagmvs
49 New Member
sure .

Thanku

Thanku very much.
Aug 30 '08 #5
nagmvs
49 New Member
sure .
Thanks sirrrrrrrrrrrrrrrrrrrrrrrrrrrr
Sep 2 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Pernell Williams | last post by:
Hi all: I am new to Python, and this is my first post (and it won't be my last!), so HELLO EVERYONE!! I am attempting to use "xreadlines", an outer loop and an inner loop in conjunction with...
3
by: Ian | last post by:
Hi all, I have a problem. I have an application which needs to work with a lot of data, but not all at the same time. It is arranged as a set of objects, each with lots of data that is created...
6
by: flamesrock | last post by:
ok, so to my knowledge, object oriented means splitting something into the simplest number of parts and going from there. But the question is- when is it enough? For example I have the following...
81
by: Matt | last post by:
I have 2 questions: 1. strlen returns an unsigned (size_t) quantity. Why is an unsigned value more approprate than a signed value? Why is unsighned value less appropriate? 2. Would there...
3
by: Minh Khoa | last post by:
Please give me more information about delegate and its usage? Why do i use it and when?
10
by: Extremest | last post by:
I know there are ways to make this a lot faster. Any newsreader does this in seconds. I don't know how they do it and I am very new to c#. If anyone knows a faster way please let me know. All...
5
by: tony | last post by:
I'm using PHP 5 on Win-98 command line (ie no web server involved) I'm processing a large csv file and when I loop through it I can process around 275 records per second. However at around...
7
by: Leonel Gayard | last post by:
Hi all, I had to write a small script, and I did it in python instead of shell-script. My script takes some arguments from the command line, like this. import sys args = sys.argv if args ==...
1
by: ShadowLocke | last post by:
This is an HTML application that allows you to monitor the CPU Usage (as seen in task manager) for any one task either on the local computer or a remote computer using vbscript. It then alerts you...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.