C3DFile.GetParExists

Previous  Next

 

nDim = C3DFile.GetParExists( BYVAL nFile      AS INTEGER,

                             BYVAL strParName AS STRING ) AS INTEGER

 


 

Returns TRUE if specified parameter exists in file.

 

Example:

 

SUB PrintLabelDim( nFile AS INTEGER, strLabel AS STRING )

  DIM i AS INTEGER

  DIM j AS INTEGER

 

  IF C3DFile.GetParExists( nFile, strLabel ) THEN

     j = C3DFile.GetParNoOfDimensions( nFile, strLabel )

     PRINT strLabel;"( ";

 

     FOR i = 1 TO j

        IF i > 1 THEN

           PRINT ", ";

        ENDIF

        PRINT C3DFile.GetParDimension( nFile, strLabel, i-1 );

     ENDFOR

 

     PRINT " )",

  ELSE

     PRINT "Label: ";strLabel;" doesn't exist in file !",

  ENDIF

END SUB