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:
01044029
Vues:
14
>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)
>
Try this
iHandle = FCREATE("TestMenu.prg")
_TEXT = iHandle

your_text_to_insert = 'text insert in .....'

TEXT TO _TEXT TEXTMERGE NOSHOW

. Bunch of text here
. Bunch of text here
. Bunch of text here
. Bunch of text here

<<your_text_to_insert>>

. Bunch of text here
. Bunch of text here
. Bunch of text here
. Bunch of text here

ENDTEXT
=FCLOSE(iHandle)
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform