Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting Text Into A File
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01044009
Message ID:
01044025
Vues:
14
lcMsg = 'hello'

iHandle = FCREATE("TestMenu.prg")
_TEXT = iHandle

set textmerge on

TEXT TO _TEXT NOSHOW

. Bunch of text here
. Bunch of text here
. Bunch of text here
. Bunch of text here
.
. <<lcMsg>>
.
. Bunch of text here
. Bunch of text here
. Bunch of text here
. Bunch of text here

ENDTEXT

set textmerge off

=FCLOSE(iHandle)
>I'm creating a text file as shown below. Most of the file will
>be not change, but at one point in the file I want to insert
>some text which is specific to the instance it was run.
>
>Anyone know how to do this?
>
>
>iHandle = FCREATE("TestMenu.prg")
>_TEXT = iHandle
>
>TEXT TO _TEXT NOSHOW
>
>. Bunch of text here
>. Bunch of text here
>. Bunch of text here
>. Bunch of text here
>
>. NEED TO INSERT CUSTOM TEXT HERE
>
>. Bunch of text here
>. Bunch of text here
>. Bunch of text here
>. Bunch of text here
>
>ENDTEXT
>=FCLOSE(iHandle)
>
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform