Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nested items in textmerge
Message
 
 
À
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:
01428705
Vues:
35
Fabio,

Thanks, but the actual code is a lot more complex than the illustration code I posted. I've ended up with code like this in the method
store textmerge( textmerge( lcField, .t., "{{", "}}" ), .t. ) to ("roObject." + laMembers[i])
with database entries like
<<this.DOSFilename( Job.Descript, '{{gcShape}}' )>>.xls
With simple documentation explaining to use the brace delimiters in the case where nested substitution items are required.

>
>one = "test"
>two = "123"
>
>lcfield = "start<<callit2( 'one', 'two' )>>end"
>? textmerge( lcfield, .t. )
>
>function callit2( lc1, lc2 )
>return "<<"+lc1 +"+"+ lc2+">>"
>
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform