Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extracting portions of code from a text file
Message
 
À
23/11/2004 16:22:09
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows 2000 SP2
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00964037
Message ID:
00964057
Vues:
9
This message has been marked as the solution to the initial question of the thread.
>How can I search for a phrase in a text file (.PRG), seach for a second phrase and copy/paste all the text inbetween to another text file. Basically, I want to programmatically take portions of code and copy them to the bottom of another file.

Take a look at STREXTRACT function, for example:

lcFirstFont = STREXTRACT(lcHTML, '[font]', '[/font]', 1)

The delimiters can be any text you want
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform