Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Include Command in text endtext section
Message
From
10/11/2007 09:23:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01268183
Message ID:
01268203
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>Hi all,
>
>it 's possible to include Command in text endtext section ?

No, but you can insert an expression - which can then be a function call, another variable etc. Since it's easy to run into trouble if you're doing textmerge within textmerge, a function call called from a textmerge should not do textmerge. My usual approach is to stuff all the relevant parts in variables in advance:

>
if lSomeCondition
   lcBlaBla="Bla bla bla etc."
else
   lcBlaBla="Bla not available. Try with alb."
endif

>TEXT to m.lcXML textmerge noshow
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
><html xmlns="http://www.w3.org/1999/xhtml">
><head>
><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
><title>Untitled Document</title>
></head>
>
><body>
><p><img src="http://www.Amline.be//images/lvback.gif" alt="Logo Amline" longdesc="http://www.amline.be" /></p>
><p> </p>
><p>Bonjour,</p>
>
<<lcBlaBla>>
>
>
><p>Premier test. </p>
><p> </p>
><p>Vous pouve me contacter à <a href="mailto:support@Amline.be">Adresse Email Milcent bernhart</a></p>
></body>
></html>
>ENDTEXT
>
>
>bernhart

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform