What you can do with LONGCHAR values
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
You can do the following with LONGCHAR values:
- Display and update
LONGCHARin a large editor. The default is no display. - Use
LONGCHARvariables as parameters and return values in procedures, user-defined functions, and methods. Note that, as is also the case withMEMPTRvalues,LONGCHARreturn values from user-defined functions are not allowed to be passed from an application server to a client. - Use the
COPY-LOBstatement to copy data from aCLOBto aLONGCHARso that you can manipulate theCLOBdata. - The following tables list the ABL elements that work with
LONGCHARvariables. For example, you can get the character length of aLONGCHARby usingLENGTHwith the character (default) option. Or you canSUBSTRINGaLONGCHARwith the offset given in characters, not bytes. The particulars of which string manipulation functions apply toLONGCHARvalues vary for each function and for particular characteristics of theLONGCHAR. For example, most functions which alter the string only apply toLONGCHARvalues that are in -cpinternal. All functions which deal withLONGCHARvalues and have offset and length input parameters use character offsets and lengths, not byte values. For more information on these ABL elements, see the ABL Reference.
| Operators | ||
|---|---|---|
Concatenation (+) |
Equal (EQ or =) |
Less than (LT or <) |
Assignment (=) |
Greater than (GT or >) |
Less than or equal (LE or >=) |
BEGINS
|
Greater than or equal (GT or >=) |
|
MATCHES
|
Not equal (NE or <>) |
|
| Functions | ||
|---|---|---|
BASE64-DECODE
|
INDEX
|
R-INDEX |
BASE64-ENCODE |
IS-CODEPAGE-FIXED |
REPLACE |
CAPS
|
LC |
RIGHT-TRIM |
CODEPAGE-CONVERT
|
LEFT-TRIM |
SHA1-DIGEST |
COMPARE |
LENGTH |
SUBSTITUTE |
ENCRYPT
|
LOOKUP |
SUBSTRING |
ENTRY |
MD5-DIGEST |
TRIM |
GENERATE-PBE-KEY |
NORMALIZE |
|
GET-CODEPAGE |
NUM-ENTRIES |
|
| Statements | ||
|---|---|---|
ASSIGN |
EXPORT |
OVERLAY |
COPY-LOB |
FIX-CODEPAGE |
PUT-STRING |
DEFINE PARAMETER |
FUNCTION |
SUBSTRING |
DEFINE VARIABLE |
IMPORT |
VAR |
ENTRY |
METHOD |
|
| Attributes | |
|---|---|
FRAGMENT |
SYMMETRIC-ENCRYPTION-KEY |
| Methods | ||
|---|---|---|
DECLARE-NAMESPACE() |
READ-XMLSCHEMA() |
WRITE-DATA-ELEMENT() |
END-ELEMENT() |
SAVE() |
WRITE-EMPTY-ELEMENT() |
GET-CGI-LONG-VALUE() |
SET-INPUT-SOURCE() |
WRITE-ENTITY-REF() |
GET-NODE() |
SET-OUTPUT-DESTINATION() |
WRITE-EXTERNAL-DTD() |
GET-SERIALIZED() |
SET-PARAMETER() |
WRITE-FRAGMENT() |
INSERT-ATTRIBUTE() |
SET-SERIALIZED() |
WRITE-PROCESSING- INSTRUCTION() |
LOAD() |
START-ELEMENT() |
WRITE-XML() |
LONCHAR-TO-NODE-VALUE() |
WRITE-CDATA() |
WRITE-XML-SCHEMA() |
NODE-VALUE-TO-LONGCHAR() |
WRITE-CHARACTERS() |
|
READ-XML() |
WRITE-COMMENT() |
|