ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

substring BUT?

Hi,

I have a string like

32755;-31412;-30342;28086;....;32432

I would like the get the 4th and the 7th data from this string and make
another string.

Any easy way to do it?

TIA
0 Kudos
Message 1 of 3
(2,868 Views)
Hi,

I attached an example, which show one of the multiple ways to achieved the
requested result.

Greetings,

Andr? Buurman

Software engineer @ Carya Automatisering
"Volvo JazzHouse" schreef in bericht
news:c6j1hm$c4p0k$1@ID-151061.news.uni-berlin.de...
> Hi,
>
> I have a string like
>
> 32755;-31412;-30342;28086;....;32432
>
> I would like the get the 4th and the 7th data from this string and make
> another string.
>
> Any easy way to do it?
>
> TIA



[Attachment Example.vi, see below]
0 Kudos
Message 2 of 3
(2,868 Views)
You can use the "Spreadsheet String To Array" function to get an array
of numbers, select the elements you need and convert to a Spreadsheet
String again.

Niko


Volvo JazzHouse wrote:
> Hi,
>
> I have a string like
>
> 32755;-31412;-30342;28086;....;32432
>
> I would like the get the 4th and the 7th data from this string and make
> another string.
>
> Any easy way to do it?
>
> TIA
0 Kudos
Message 3 of 3
(2,868 Views)