Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textmerge recursive
Message
From
11/02/2014 09:49:08
 
 
To
11/02/2014 07:29:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01593970
Message ID:
01593987
Views:
44
>Consider this code:
>
>LOCAL lcTest
>lcTest = "<<lcTest2>>"
>*
>LOCAL lcTest2
>lcTest2 = "Hello World"
>
>TEXT TO lcOutput1 TEXTMERGE NOSHOW
>What I say:
><<lcTest>>
>Good bye.
>ENDTEXT
>
>MESSAGEBOX(lcOutput1) &&displays <<lcTest>> literally.
>
>LOCAL lcOutput2
>lcOutput2 = TEXTMERGE(lcOutput1,.T.,"<<",">>")
>
>MESSAGEBOX(lcOutput2) && Displays Hello World.
>
>
>I wonder if there a way to have the first Textmerge evaluate the string lcTest recursively?

Use the TextMerge() function instead of the command. It has a parameter to indicate whether it should be recursive.

Tamar
Previous
Reply
Map
View

Click here to load this message in the networking platform