Previous Next

Create( ) method (CHARACTER)

(Windows only; GUI for .NET only)
Use this set of Create( ) method overloads to initialize CHARACTER values in ABL.
Note:
Return type:
Access:
Applies to:
 
Syntax 
StringHelper:Create ( method-parameters )
method-parameters
A CHARACTER expression that contains one or more parameters for this method (based on the method overload).
Table 128 describes the Create( ) method overloads for initializing CHARACTER values.
 
Create( INPUT chars AS CHARACTER EXTENT )
Create( INPUT chars AS CHARACTER, 
        INPUT count AS INTEGER )
Create( INPUT chars AS CHARACTER EXTENT,
        INPUT startIndex AS INTEGER, 
        INPUT length AS INTEGER )
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:

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.