473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

dot net functions

I am working with visual basic.net 1.1. I need to parse out data in a string
that is space delimited. The number of spaces between each data item in the
string can change. (I have no control over how many spaces are between each
item in the string since I am getting the data from a mainframe system over
the internet.)
I know that if I used the string function called split, I can split the
items in the string into items in an array. However, this is assuming the
delimiter is exactly the same. In this case, the number of spaces can change.
Thus I am looking for a solution to this parsing problem. I do not care if
I used the split string function. I would just like a solution that works.
Thanks!
Nov 3 '05 #1
3 1274
See answer in CLR NG.
"Wendy Elizabeth" <We************@discussions.microsoft.com> wrote in
message news:51**********************************@microsof t.com...
I am working with visual basic.net 1.1. I need to parse out data in a
string
that is space delimited. The number of spaces between each data item in
the
string can change. (I have no control over how many spaces are between
each
item in the string since I am getting the data from a mainframe system
over
the internet.)
I know that if I used the string function called split, I can split the
items in the string into items in an array. However, this is assuming the
delimiter is exactly the same. In this case, the number of spaces can
change.
Thus I am looking for a solution to this parsing problem. I do not care
if
I used the split string function. I would just like a solution that
works.
Thanks!

Nov 3 '05 #2
Ditto.

"Scott M." <s-***@nospam.nospam> wrote in message
news:uL**************@TK2MSFTNGP15.phx.gbl...
See answer in CLR NG.


Nov 3 '05 #3
use

split(' ') to create an array

then eliminate all elements where length==0

then trim the right spaces from the remaining.

Wendy Elizabeth wrote:
I am working with visual basic.net 1.1. I need to parse out data in a string
that is space delimited. The number of spaces between each data item in the
string can change. (I have no control over how many spaces are between each
item in the string since I am getting the data from a mainframe system over
the internet.)
I know that if I used the string function called split, I can split the
items in the string into items in an array. However, this is assuming the
delimiter is exactly the same. In this case, the number of spaces can change.
Thus I am looking for a solution to this parsing problem. I do not care if
I used the split string function. I would just like a solution that works.
Thanks!


Nov 3 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: hokiegal99 | last post by:
A few questions about the following code. How would I "wrap" this in a function, and do I need to? Also, how can I make the code smart enough to realize that when a file has 2 or more bad...
99
by: David MacQuigg | last post by:
I'm not getting any feedback on the most important benefit in my proposed "Ideas for Python 3" thread - the unification of methods and functions. Perhaps it was buried among too many other less...
21
by: Rubén Campos | last post by:
I haven't found any previous message related to what I'm going to ask here, but accept my anticipated excuses if I'm wrong. I want to ask about the real usefulness of the 'inline' keyword. I've...
17
by: cwdjrxyz | last post by:
Javascript has a very small math function list. However there is no reason that this list can not be extended greatly. Speed is not an issue, unless you nest complicated calculations several levels...
2
by: Bryan Olson | last post by:
The current Python standard library provides two cryptographic hash functions: MD5 and SHA-1 . The authors of MD5 originally stated: It is conjectured that it is computationally infeasible to...
7
by: Tim ffitch | last post by:
Hi I have created a VB dll file that contains common functions I use across various projects in VB, Access and Excel. Rather than have to code the functions in each I decided to use the dll...
23
by: Timothy Madden | last post by:
Hello all. I program C++ since a lot of time now and I still don't know this simple thing: what's the problem with local functions so they are not part of C++ ? There surely are many people...
14
by: v4vijayakumar | last post by:
Why we need "virtual private member functions"? Why it is not an (compile time) error?
7
by: Immortal Nephi | last post by:
My project grows large when I put too many member functions into one class. The header file and source code file will have approximately 50,000 lines when one class contains thousand member...
6
KevinADC
by: KevinADC | last post by:
This snippet of code provides several examples of programming techniques that can be applied to most programs. using hashes to create unique results static variable recursive function...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.