Solved

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

Posted on 2009-04-07
1
259 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

778 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