Subversion Repositories wimsdev

Rev

Rev 5921 | Rev 11223 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32 reyssat 1
!if $numlist_type=record
11210 bpr 2
  !set numlist_str=`fname'
32 reyssat 3
!else
11210 bpr 4
  !set numlist_str=`string'
32 reyssat 5
!endif
11210 bpr 6
!if $numlist_type=char
7
  !set numlist_type=character
8
!endif
9
`numlist' can be a single integer, a comma-separated list of
32 reyssat 10
integers, or a range of integers.
5766 bpr 11
<br/>
32 reyssat 12
A positive integer denotes the number of $numlist_type in $numlist_str
13
counted from the beginning,
11210 bpr 14
with `1' corresponding to the first
15
$numlist_type. A negative integer denotes the number of $numlist_type from
16
the end of $numlist_str: `-1'
17
means the last $numlist_type, `-2' means
32 reyssat 18
the next-to-last $numlist_type, etc. <p>
19
The syntax for a range of integers is
11210 bpr 20
<span class="tt">`n1' to`n2'</span>
21
For example, <span class="tt">`2 to -2'</span>
32 reyssat 22
means the whole $numlist_str except the first
11210 bpr 23
and the last $(numlist_type)s.
5920 bpr 24
</p>