NET/IDXNET Logic

 

Often you'll want a ‘net’ row. This is a row that reports the total cases for several rows. You can specify such rows with basic logic, or you can use the NET instruction if the net row is to be printed above the rows it is netting or the NET- instruction if the net row is to be printed below the rows it is netting.

 

If your table is defined using Indexed Variables and you want a true net count, you can use the IDXNET instruction in place of the NET instruction.

 

IMPORTANT: The Count feature should not be used for rows that are part of a NET/IDXNET or NET-/IDXNET- instruction.

 

When you use the NET/IDXNET or NET-/IDXNET- instructions (rather than basic logic) WinCross recognizes the row as a net row and does each of the following:

There are two ways to program rows using "NET/IDXNET" logic:

 

1st method:

NET 3

or

IDXNET 3

 

This logic produces a row showing the net of the next three rows below. If you add or remove rows from the NET/IDXNET, you must remember to change the number after the NET/IDXNET command.

 

2nd method:

NET

Row 1

Row 2

Row 3

ENDNET

or

IDXNET

Row 1

Row 2

Row 3

ENDNET (there is no ENDIDXNET command; the ENDNET command works for both NET and IDXNET)

 

For this method you will program a row with the logic "NET" or "IDXNET" above the rows you want to include and then a row with the logic "ENDNET" after the rows. The benefits of using the NET/ENDNET or IDXNET/ENDNET logic is that you can add or remove rows from within the logic without the need to change the NET or IDXNET logic row.

 

You can use either NET method to set up a ‘subnet’ to net rows within rows that are part of another net.

 

There is one way to program rows using "NET-/IDXNET-" logic:

 

NET-3

or

IDXNET-3

 

This logic produces a row showing the net of the three previous rows. If you add or remove rows from the NET-/IDXNET-, you must remember to change the number before the NET-/IDXNET- command.

 

You can use the NET-/IDXNET- instruction to set up a ‘subnet’ to net rows within rows that are part of another net.

 

Note: The NET/IDXNET and NET-/IDXNET features allow for 4 levels within a NET/IDXNET (5 levels including the starting NET/IDXNET or NET-/IDXNET-).

Related topics:

 Logic