PreviousNextIndex

LENGTH statement

Changes the number of bytes in a raw variable.

Syntax

LENGTH ( variable ) = expression 

variable
expression
Example

This procedure takes the number of bytes in the name stored in the variable r1 and truncates it to 2 bytes:

r-rawln1.p
/* You must connect to a non-OpenEdge demo database to run this procedure */ 
DEFINE VARIABLE r1 as RAW NO-UNDO. 
FIND Customer NO-LOCK WHERE Customer.CustNum = 29. 
r1 = RAW(Customer.Name). 
LENGTH(r1) = 2. 

Notes

OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex