Contents Previous Next Subchapters

Obtaining a Variable Number from Variable Name
Syntax variable = tpvarnum(name)
See Also tpvarname , tpzonename , tpzonenum

Description
Returns the Tecplot variable number for the variable name specified by the character row vector name in the current data set. If the return value variable is less than 1 then the specified variable name does not exist in the current data set.

Examples
If you enter
   clear
   fName = [OM_INSTALL,"\example\tecplot\rainfall.plt"] 
   tpopen(fName)
   tpvarnum("Dallas Rainfall")
Tecplot will open the rainfall sample file from your distribution and print 3 which is the variable number for "Dallas Rainfall"