Next: exaEdit Errors
Previous: exaEdit Functions
Up: Functions
Inserting Record Numbers
For records that are inserted between two existing numbers, exaEdit
creates a new number that lies in the interval between the existing
ones. As mentioned in section
Record Numbers,
this serves to ensure the strict ascendancy of the record numbers.
Usually, the interval between two records will be 100 and both record
numbers will also be divisible by 100, for example:
Inserting one new record will create a record with the number 820:
800 ...
820 new record
900 ...
Further records that are inserted will receive the numbers 840,
860 and 880. When even more records are inserted, they will
receive suitable numbers between 880 and 900.
If the standard intervals are not 100, the insertion intervals also
will not be 20, but an interval suitable in comparison with the
standard interval. In all of these cases, exaEdit tries to achieve the
following:
-
Use `round' numbers rather than `weird' ones.
-
When creating a new number, choose the lower half of the existing
interval instead of the middle. The reason for this is the assumption
that further inserted records will more likely follow and not precede the
new record.
-
Do not renumber as long as it is possible to insert new record numbers
between existing ones.
-
When renumbering is needed, do not use the standard interval, but
a smaller one (e.g. 20 instead of 100 or 100 instead of 500).
This way, not all of the following existing record numbers have
to be renumbered.
-
If a renumbering would result in record numbers larger than the permitted
maximum of 99999999, avoid this by choosing smaller intervals and
choosing a lower record number as a starting point for the renumbering.
Thus the largest needed number will not exceed the maximum (only
partially realized in exaEdit version 01).
Next: exaEdit Errors
Previous: exaEdit Functions
Up: Functions