|
Contents | Previous | Next | Subchapters |
| Syntax |
name = tpvarname(variable) |
| See Also | tpvarnum , tpzonename , tpzonenum , tpmapcount |
" " then the requested variable
does not exist in the current data set.
clear
fName = [OM_INSTALL,"\example\tecplot\rainfall.plt"]
tpopen(fName)
tpvarname(3)
Tecplot will open the rainfall sample file from your distribution
and print "Dallas Rainfall" which is the name for variable
number 3.
You can use the tpvarname function to
determine all of the variable names in a file.
If you continue the example above by entering
ix = 1
while( tpvarname(ix) <> " ") begin
print tpvarname(ix)
ix = ix+1
end
O-Matrix will echo the following
Month
Seattle Rainfall
Dallas Rainfall
Miami Rainfall
Error 1
Error 2