10-07-2015 09:46 AM
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
10-07-2015 10:09 AM
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
10-08-2015 02:05 AM
Hi
Thank you, so
["&str(GroupNr)&"] makes a string like: ["five"] ; if the Group Nr is 5 ???
10-08-2015 10:50 AM
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