Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : Create( ) method (CHARACTER)
 

Create( ) method (CHARACTER)

(Windows only; GUI for .NET only)
Use this set of Create( ) method overloads to initialize CHARACTER values in ABL.
Note: This method is used primarily by the Visual Designer during code generation. You should not expect to use this method directly.
Return type: CHARACTER
Access: PUBLIC STATIC
Applies to: Progress.Util.StringHelper class

Syntax

StringHelper:Create ( method-parameters )
method-parameters
A CHARACTER expression that contains one or more parameters for this method (based on the method overload).
The following table describes the Create( ) method overloads for initializing CHARACTER values.
Table 131. Create( ) method overloads for CHARACTER values
Method overload syntax
Description
Create( INPUT chars AS CHARACTER EXTENT )
Returns a CHARACTER initialized to the value indicated by an array of characters
Create( INPUT chars AS CHARACTER,
        INPUT count AS INTEGER )
Returns a CHARACTER initialized to the value indicated by a specified character repeated a specified number of times
Create( INPUT chars AS CHARACTER EXTENT,
        INPUT startIndex AS INTEGER,
        INPUT length AS INTEGER )
Returns a CHARACTER initialized to the value indicated by a specified array of characters, a starting character position within that array, and a length
The following example uses this method to initialize a CHARACTER variable with the string "AAAAAAA", and then displays the result:
USING Progress.Util.* FROM ASSEMBLY.

DEFINE VARIABLE aString AS CHARACTER NO-UNDO.

aString = StringHelper:Create( "A", 7 ).

Display aString.

See also

Create( ) method (DATETIME), Create( ) method (DECIMAL)