Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

NRCASES returns the number of cases (of a parameter) in an object, Telitab$ or solution

Syntax

NRCASES("ParAddress$")

...

If any string parameter is followed by "." or by ".Par" its value is assumed to contain a Telitab set for which the same applies as for objects:

NRCASES("Telitab$.") returns the number of cases in Telitab set being the current case value of Telitab$.

NRCASES("PROP.D") returns the number of cases of parameter D in object PROP

NRCASES("Telitab$.Par") returns the number of cases of parameter Par in Telitab set being the current case value of Telitab$.

NRCASES("PROP.*D)") returns the number of matrix cases of parameter D in object PROP

NRCASES("Telitab$.*Par)") returns the number of matrix cases of parameter Par in Telitab set being the current case value of Telitab$.

Remarks

  1. With matrix cases we mean the number of different cases in the table. For instance, if you have a 3D space description, for each x value you have a table of y,z values. If you put this in a data set, you get columns of x, y and z values like this:
      

    If you ask for the number of matrix cases of x, you get 3 (and not 9), because there are 3 x-coordinates

  2. Nested parameter addresses like "PROP$.OWDAT.KT" and "PROP$.OWDAT$.KT" are allowed
  3. Telitab$ attribute names used in the NRCASES argument do not need to exist in the knowledge base. If they don't exist in Telitab$, zero is returned as NRCASES.

...

NRCASES("Components.ID$=MainDiesel.2") returns the first case number of ID$ in object/Telitab$ Components with value "MainDiesel.2"

NRCASES("Components.ID$=@MAINDIESEL.2") returns the first case number of ID$ in object/Telitab$ Components with value "MainDiesel.2", prefix "@" stands for equal

NRCASES("Components.ID$=&DIESEL") returns the first case number of ID$ in object/Telitab$ Components contains the word "DIESEL", prefix "&" stands for contains

NRCASES("Components.Q=40.8") returns the first case number of which the value of Q in object/Telitab$ Components equals 40.8, the rounded values (as presented in the workbase) are compared, no prefix possible

...