Solved

Vb.net Split , string with numbers (1,000) creates aditional fields  problem

Posted on 2009-04-07
1
263 Views
Last Modified: 2012-05-06
HI,

Im trying to split a string that is coma delimited but also contains numbers formated as 1,000
this is then split into two fields when it should be just one. Is there anything that can be done about this ?

Michal
0
Comment
Question by:MichMat
1 Comment
 
LVL 15

Accepted Solution

by:
David L. Hansen earned 500 total points
ID: 24093086
Yes, if there is a way of detecting the delimiting commas from the others (the ones given as an association to currency).  Perhaps there is a space or other patterns which can be of use.  See below for an example...

1,000, 2,000, Joe Miller, 4,000.99

You see the space the follows each delimiting comma reveals it.  If however there is no way to make the distinction, no pattern from which you can deduce the two, there is nothing to be done I'm afraid :)

Per chance you do find such a pattern, change the dilimiting commas to somthing else (a tilda ~ or pipe | will do) then use the split command on that.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question