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,138 Views)
Solution
Accepted by topic author 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,129 Views)