DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the meaning of CHV(ChanalLine,"["&str(GroupNr)&"]/CHName")

 

Hallo

 

Well it seems to work, but I didnt find what && means? Difficult to search it.

 What means && ? Where is it written in the Help HTML ?

 

And what exactly is str doing (The Input is the Index of the Channel like:

 

GroupNr = GroupPropValGet(iCount+1,"index")

 

Thank You

 

 

 

 

0 Kudos
Message 1 of 4
(4,488 Views)

Hi Quadrange

& concatenatea two strings to one string. It is described here:

http://zone.ni.com/reference/en-XX/help/370858M-01/vbs/general/vbs_operators/

 

Alternative you can use the plus + to combine two strings to one string.

 

STR converts a numeric value to a string. With the optional parameter you can format the string.

http://zone.ni.com/reference/en-XX/help/370858M-01/functions/functions/str/

 

Hope that helps

 

Winfried

0 Kudos
Message 2 of 4
(4,482 Views)

 

Hi

 

Thank you, so

 

["&str(GroupNr)&"] makes a string like: ["five"] ; if the Group Nr is 5 ???

0 Kudos
Message 3 of 4
(4,466 Views)

Hi Quadrangle,

 

Correct, although you need leading and trailing quote characters to complete the string:

 

"["&str(GroupNr)&"]"

 

If you use the "&" operator to concatenate, then you don't need the "str()" command to convert the GroupNr value to a string.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 4 of 4
(4,452 Views)