![]() |
STRING VARIABLEName:
The STRING VARIABLE command allows you to add character variables to "dpzchf.dat" from a list of scalar strings. You can specify whether you want Dataplot to overwrite the current contents of "dpzchf.dat" or append the new variable to the current contents of "dpzchf.dat". To have the STRING VARIABLE command overwrite the current contents of "dpzchf.dat", enter
To have the STRING VARIABLE command append the new string variable to the current contents of "dpzchf.dat", enter
where <sout> is the name of the resulting string variable; and <s1> ... <sk> is a list of one or more previously defined strings or literal text strings. Literal text strings should be enclosed in quotes. If an argument on the right hand side of the equal sign is not enclosed in quotes, it will be assumed to be a previously defined string. If an argument is not enclosed in quotes and is not the name of a previously defined string, an error message will be returned and <sout> will not be created. The TO syntax is supported for the argument list (see the Examples).
LET IX = STRING VARIABLE S1 TO S10 LET IX = STRING VARIABLE "Group 1" "Group 2" "Group 3" LET IX = STRING VARIABLE "Group 1" S2 "Group 3" S4
set string variable overwrite let ix = string variable "Group 1" "Group 2" "Group 3" list dpzchf.datThe following output is generated 1 IX 3 Group 1 Group 2 Group 3Program 2: set string variable overwrite let string s1 = Group 1 let string s2 = Group 2 let string s3 = Group 3 let ix = string variable s1 s2 s3 list dpzchf.dat pauseThe following output is generated 1 IX 3 Group 1 Group 2 Group 3 . set string variable append let string s4 = Group 4 let string s5 = Group 5 let string s6 = Group 6 let iy = string variable s4 s5 s6 list dpzchf.datThe following output is generated 2 IX 3 IY 3 Group 1 Group 4 Group 2 Group 5 Group 3 Group 6 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Privacy
Policy/Security Notice
NIST is an agency of the U.S. Commerce Department.
Date created: 01/28/2020 |