From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

search i a string

Solved!
Go to solution

Hello, 

 

If I probe a string. I get this from probe Watch.

 

Name:  Tested

Value:   "Testpart_0_part_0"

 

How can read out the value from "Testpart"   ( in this case 0).

 

Br

P

0 Kudos
Message 1 of 2
(5,133 Views)
Solution
Accepted by LVdummies

I get the feeling this is a LabVIEW question, if that is the case you have posted in the wrong place.

 

For DIAdem you could use split function

 

Dim sArray,sSampleString, iTestPart
sSampleString = "Testpart_1_part_0"
sArray = Split(sSampleString, "_", -1,vbTextCompare) ' 
iTestPart = Val(sArray(1))

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 2
(5,124 Views)