Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Parse This Text
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How To Parse This Text
Divers
Thread ID:
01319144
Message ID:
01319144
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform