Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Parse This Text
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How To Parse This Text
Miscellaneous
Thread ID:
01319144
Message ID:
01319144
Views:
51
I have a file with the following text:
     AR        (ENDBALS->AR         )  Numeric        Calculated
        IIF(TRADES->PAY_REC = "REC",IIF(NOTSHIP>ENDBALS->ENDCASH.OR.(NOTSHIP<ENDBALS
        ->ENDCASH.AND.ENDBALS->ENDCASH>0), ENDBALS->ENDCASH-NOTSHIP,0),IIF(
        TRADES->PAY_REC = "PAY",IIF(NOTSHIP<ENDBALS->ENDCASH.OR.(NOTSHIP>EN
        DBALS->ENDCASH.AND.ENDBALS->ENDCASH<0),ENDBALS->ENDCASH-NOTSHIP,0),
        IIF((TRADES->PAY_REC="LM".OR.TRADES->PAY_REC="SM").and.ENDBALS->END
        CASH >0,ENDBALS->ENDCASH,0)))
     ARLINE    (ENDBALS->ARLINE     )  Numeric        Total
        Sum(ENDBALS->AR(), ENDBALS->CUSTNUM, Automatic, Running)
     ARTOT     (ENDBALS->ARTOT      )  Numeric        Total
        Sum(ENDBALS->AR(), Grand, Automatic, Running)
I want to parse out the table & field names, which are in the format of "TABLE->FIELD". I'm doing this in a low level file, so I'm using FGETS() to extract the info line by line.

The problem is that some if the table & field pair wrap onto the next line.

Anyone got any ideas?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform