Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inserting Text Into A File
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01044009
Message ID:
01044029
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform