Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > ORD

 

 

Purpose

ORD returns the ordinal value (0-255) of an alphanumeric character based on the internal machine coding (i.e., ASCII or EBCDIC).
 

Syntax

variable = ORD (operand)
 

Operation

operand is any valid alphanumeric constant, variable, or expression.
 

Example

Assume $A = ‘X’ and $B = null.

#A = ORD($A)      sets #A to 231 on an EBCDIC machine

#A = ORD($A)      sets #A to 88 on an ASCII machine

#A = ORD($B)      sets #A to zero
 

Comment on this topic

Topic ID: 520095

 
 
 

Table of Contents

Index

Glossary

-Search-

Back