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.
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: