p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   General .NET (http://p2p.wrox.com/forumdisplay.php?f=122)
-   -   Breaking a String (http://p2p.wrox.com/showthread.php?t=35218)

Macsood November 17th, 2005 12:51 PM

Breaking a String
 
I have created an ID for any entity by concatenating 3 different IDs. I want to break them into 3 IDs again.For further elaboration the ID i wan to break is:

"CityID-CategoryID-SubcategoryID"

Now i want to break this ID into 3 again.Could someone give me some ideas.



ajindal November 17th, 2005 11:29 PM

Hi

You can create an array structure like
Dim MyArray

and can use net function like

MyArray= YourString.Split("-")

this will fill values in MyArray and can fetch values like MyArray(0),MyArray(0)...and so

I hope will solve ur problem

bye

Amit


All times are GMT -4. The time now is 06:45 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.