Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Textmerge recursive
Message
De
11/02/2014 09:49:08
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01593970
Message ID:
01593987
Vues:
43
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform