10 6 8 AsInteger

LANSA Technical

10.6.8 AsInteger

AsInteger returns the ASCII/ebcdic value of the first character in the string

Windows platform

The ASCII decimal value of the first character in the string is obtained as per the following table:

nul

0

soh

1

stx

2

etx

3

eot

4

enq

5

ack

6

bel

7

bs

8

ht

9

nl

10

vt

11

np

12

cr

13

so

14

si

15

dle

16

dc1

17

dc2

18

dc3

19

dc4

20

nak

21

syn

22

etb

23

can

24

em

25

sub

26

esc

27

fs

28

gs

29

rs

30

us

31

sp

32

!

33

"

34

#

35

$

36

%

37

&

38

'

39

(

40

)

41

*

42

+

43

,

44

-

45

.

46

/

47

0

48

1

49

2

50

3

51

4

52

5

53

6

54

7

55

8

56

9

57

:

58

;

59

<

60

=

61

>

62

?

63

@

64

A

65

B

66

C

67

D

68

E

69

F

70

G

71

H

72

I

73

J

74

K

75

L

76

M

77

N

78

O

79

P

80

Q

81

R

82

S

83

T

84

U

85

V

86

W

87

X

88

Y

89

Z

90

[

91

\

92

]

93

^

94

_

95

`

96

a

97

b

98

c

99

d

100

e

101

f

102

g

103

h

04

i

105

j

106

k

107

l

108

m

109

n

110

o

111

p

112

q

113

r

114

s

115

t

116

u

117

v

118

w

119

x

120

y

121

z

122

{

123

|

124

}

125

~

126

del

127

 

IBM i platform

If this intrinsic function is run on IBM i, it will return a value according to the table in www.astrodigital.org/digital/ebcdic.html. (You can ignore the Hex column in the table).

Input Parameters

None

Examples

For Windows

If #String is "a", #Integer will be 97:

#Integer := #String.AsInteger
 

If #String is "}", #Integer will be 125

#Integer := #String.AsInteger
 

Ý 10.6 Alphanumeric/String Intrinsic Functions