String Manipulation using DotNet In NAV2015

heveenheveen Member Posts: 20
edited 2015-06-27 in NAV Three Tier
Hello Experts

I am in a situation where am not able to either use Navision functions or DotNet function to manipulate some string.

Here is my string
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6012742791	HERRETØJ	Sporti HERRETØJ		Sporti HERRETØJ	6920	Videbak	Bredgade 25	Bredgade	25							97173915	1	0			760	216	

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
These values i got it form a webservice like this
ResponseString := webclient.DownloadString("www.someurl.com" + '?QueryString=' + '57751975');
ResponseString is a DotNet variable (System.String)

Now, i want to separate the ResponseString base on Tab.
I have try this DotNet code, but Nav doesnot allow it
ResponseString.Slipt(' ');

Before, in classic NAV, ADOStream can be used to manipulate the string. I could use it to split these string based on Tab.
But in NAV2015, i cant used it since the application will be used on web client and click once.


Can you guys help me out?...
How can i split my string based on Tab.


Expected Result :
6012742791	
HERRETØJ	
Sporti HERRETØJ	
	
Sporti HERRETØJ	
6920	
Videbk	Bredgade 25	Bredgade	
25	
	
	
97173915	
1	
0	
	
	
760	216	

Comments

  • QWERT_QWERT_ Member Posts: 13
    You have to use the .NET tab character which is referenced by using the notion "\t" or the object ControlChars.Tab
    ResponseString.Spilt(ControlChars.Tab);
    
  • imclever1205imclever1205 Member Posts: 94
    Ah to p donne fesse bien mem mo truver ! :lol:
  • JuhlJuhl Member Posts: 724
    Or you could stream it to an xmlport. It Can handle tab If i remember correctly.
    Follow me on my blog juhl.blog
Sign In or Register to comment.