[Stackoverflow] [Progress OpenEdge ABL] Progress Openedge : Defining Delimiter as variable?

Status
Not open for further replies.
M

Mister3

Guest
I have been trying to figure out how to use delimiter as a variable. However no go. Anyone got any suggestions?

This is what i have tried, however it does not work:

Code:
    iLine = getLastHeaderLine().
    cDelimiter = getDelimiter().
    REPEAT:
        IF iLine <= 1
        THEN DO:
            IMPORT UNFORMATTED csvRaLine.
        END.
        ELSE DO:
            IMPORT UNFORMATTED csvLine.
            
            IMPORT DELIMITER cDelimiter. 
            CREATE ttImportReport.
            ttImportReport.Amount = ParseAmount(csvLine).
            ttImportReport.Category = ParseCategory(csvLine).
                ttImportReport.dDate = ParseDate(csvLine).
            ttImportReport.cDescription = ParseDescription(csvLine).
            ttImportReport.cState = ParseState(csvLine).


        END.
        iLine = iLine + 1.

    END.

Continue reading...
 
Status
Not open for further replies.
Top