Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textmerge recursive
Message
From
11/02/2014 07:29:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Textmerge recursive
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:
01593970
Views:
61
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?
Christian Isberner
Software Consultant
Next
Reply
Map
View

Click here to load this message in the networking platform