Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nested items in textmerge
Message
De
10/10/2009 03:34:44
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01428366
Message ID:
01428619
Vues:
55
>Not sure I understand the usefullness of the recursive parameter in this function, attempting to next an substitution item inside another doesn't work:
>
>
>* spaces added after the < so the UT will post the message
>one = "test"
>two = "123"
>lcfield = "start< < callit( '< < one>>', '< < two>>' )>>end"
>lcx = textmerge( lcfield, .t. )  && error 36 barfs up
>
>function callit( lc1, lc2 )
>return lc1 + lc2
>
>
>If I use two separate delimiters sets and two calls it works:
>
>
>lcfield = "< < callit( '{{one}}', '{{two}}' )>>end"
>lcx = textmerge( lcfield, .t., "{{", "}}" )
>lcy = textmerge( lcx )
>
>
>Is there any way to do this with one call to textmerge()?
one = "test"
two = "123"

lcfield = "start<<callit2( 'one', 'two' )>>end"
? textmerge( lcfield, .t. )

function callit2( lc1, lc2 )
return "<<"+lc1 +"+"+ lc2+">>"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform