06-03-2015 08:45 AM
HI ALL,
I need to split the string like this.
example:
String = "HelloWorld"
mid("HelloWorld", 2, 5);
it should print "ello"
menas mid is functiuon it will split "HelloWorld" from 2nd character to 5th character and prints "ello".
This one how to do in labview.
Regards
Punith
06-03-2015 08:52 AM
06-03-2015 08:53 AM
I would go for two consecutive calls of string subset.
06-03-2015 08:57 AM
String Subset is the function you are looking for.
06-03-2015 08:59 AM
06-03-2015 09:04 AM
![]()
I guess this qualifies as an entry for Rube Goldberg code....
Dammit, any other day I would have noticed.
06-03-2015 09:12 AM
06-03-2015 09:22 AM
But if i want to split same string from 5th postion to two character , it is not working.
ex : mid("HelloWorld", 5,2);
it should print "oW".
How to do this.
Regards
Punith
06-03-2015 09:37 AM
06-04-2015 04:03 AM
I understand that in labview char position of string starts from oth postition .
But my proble is if i want interchange 5 and 2 its not working.
ex: mid("HelloWorld",5,2);
it should print "Wo" but it not working.
Regards
Punith