DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

InString

I have a parameter in the "properties". This parameter has some input parameters (8 pcs) that is comma delimited. Where I want to read out an integer value from.
How do ?

Can I use "InsStr ?

0 Kudos
Message 1 of 2
(5,452 Views)

Hi LVdummies,

 

I prefer to use Split() for tokenizing, like this:

 

PropValStr = Channel.Properties("PropName").Value
PropValues = Split("," & PropValStr, ",")
jMax = UBound(PropValues)
FOR j = 1 TO jMax
  Msg = Msg & PropValues(j) & vbCRLF
NEXT ' j
MsgBox Msg

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(5,436 Views)