C3DFile.GetParName

Previous  Next

 

strParName = C3DFile.GetParName( BYVAL nFile        AS INTEGER,

                                 BYVAL nIndex       AS INTEGER,

                                [BYVAL bMakeUpper   AS INTEGER=FALSE] ) AS STRING

 


 

Returns the name of the parameter with specified index.  An empty string is returned if the parameter with nIndex doesn't exist.  This function can be used to enumerate the file for existing parameters.  Set bMakeUpper to convert the parameter name to all upper case.

 

Example:

 

' Print the names of all parameters in file

 

DIM i AS INTEGER

DIM strName AS STRING

 

PRINT "- List of Parameters ---------------------------------",

 

i = 1

 

DO

  strName = C3DFile.GetParName( nFile, i, TRUE )

  IF strName <> "" THEN

     PRINT "   > ";strName,

     i = i + 1

  ENDIF

UNTIL strName = ""

 

PRINT "------------------------------------------------------",