This is part of the HicEst documentation
CHAR: Character from Position in ASCII Character Set
CHAR(i) is the character at the ASCII position i. CHAR also serves to divide a linear string in substrings of equal length in 1 or 2 dimensions.
⇾Home
⇾Contents
⇾more Strings
⇾ Examples
Bookmarks:
⇾array_of_substrings
⇾null_character
Fortran standard:
c1 = CHAR(i)
! c1 is the character in the specified position i of the ASCII table
Examples
:
CarriageReturn = CHAR(13)
! or $CR in
HicEst
⇾ System Variables
LineFeed = CHAR(10)
! or $LF in
HicEst
CarriageReturnLineFeed = CHAR(13) // CHAR(10)
! or $CRLF in
HicEst
Tab = CHAR(9)
! or $TAB in
HicEst
NULL = CHAR(0)
!
null_character
needed in
STRUCT
, or
DLL
HicEst
extension:
substr = CHAR( substrNR, substrCOUNT, string)
! 1 dimensional
substr = CHAR( substrROW, substrCOL, substrROWS, substrCOLS, string)
! 2 dimensional
to treat string as an
array_of_substrings
with substrCOUNT = substrROWS*substrCOLS elements
LEN
(substr) is the same as
LEN
(string) / substrCOUNT
Examples
:
CHARACTER
S1 * 16 /'123456789ABCDEF0'/
CHAR(3, 4, S1)
! substr(3 of 4 in S1) = '9ABC'
CHAR(1, 4, S1) = CHAR(2, 8, S1)
! S1 is now = '34 56789ABCDEF0'
CHAR(2,1, 4,2, S1)
! substr(3 of 8) = '56' (stored ROW by ROW)
⇾
Support HicEst
⇾
Impressum
©2000-2019 Georg Petrich, HicEst Instant Prototype Computing. All rights reserved.