TextIo.inRecordDelimiter Method [AX 2012]

Gets or sets the character that is used for the record delimiter of an input file represented by a TextIO object.

public str inRecordDelimiter([str value])

Run On

Called

Parameters

value
Type: str
The character to be used as the record delimiter; optional.

Return Value

Type: str
The character used as the record delimiter.

To set the record delimiter for an output file, use the .

The following example sets the record delimiter to 128.

boolean openFile() 
{ 
    boolean ret = false; 
    int     recordLength = 128; 
    int     numOflastCharacter = 255; 
 
    textFile = new TextIo(filename, 'r'); 
 
    if (textFile) 
    { 
        if (textFile.status()) 
        { 
            throw error("@SYS52680"); 
        } 
        textFile.inFieldDelimiter(num2char(numOflastCharacter)); 
        textFile.inRecordDelimiter(num2char(numOflastCharacter)); 
        textFile.inRecordLength(recordLength); 
        ret = true; 
    } 
 
    return ret; 
}

Community Additions

ADD
Show: