Progress
Language Reference


LENGTH Statement
(ORACLE only)

Interfaces
OS
SpeedScript
All
All
Yes

Changes the number of bytes in a raw variable.

SYNTAX

LENGTH ( variable ) = expression 

variable

A variable of type RAW.

expression

An expression that returns an integer.

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-PROGRESS demo database to run
  this procedure */

DEFINE VARIABLE r1 as RAW.

FIND customer WHERE cust-num = 29.
r1 = RAW(name).
LENGTH(r1) = 2. 

NOTES


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095