ORCA returns the number of cases in the current session or the current case number

Syntax

  1. ORCA(0);
  2. ORCA(1);
  3. ORCA(@OBJECT);
  4. ORCA(TeLiTab$);

Arguments

  • 0, the function returns the total number of cases
  • 1, the function returns the current case number which is now being executed 
  • For @Object, the function returns the number of cases in object @Object present in the current solution
  • For TeLiTab$, the function returns the number of cases in the TeLiTab set

Remarks

  1. This function is very useful to get information about multi-case problems during calculation

Examples

When you have a solution created by providing a range of  11(1)17

ORCA(0)

Returns
7


When you are in an object and you want to give a name to each case in this object by means of a parameter you could create a relation to be calculated in the object of:

Name$ = "Case_"+ORCA(1)

 


When you want to know how many cases are in an object or parameter containing a TeLiTab you can create a relation:

A = ORCA(Objectname) or  A = ORCA(TeLiTabname)


 

Quick links: Functions overview | Attribute overview | Constants overview | Dimensions overview

 

  • No labels