Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TEXT ... ENDTEXT question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01307554
Message ID:
01307622
Vues:
11
>I want to build a long command line.
>
>This works OK:
>
>TEXT TO dothis
>cmsg = 'A' + 'B'+ 'C'
>ENDTEXT
>
>&dothis
>?cmsg
>
>
>Now trying to build a multi-line command:
>
>
>
>TEXT TO dothis
>cmsg = 'A' + ;
>'B'+ 'C'
>ENDTEXT
>
>&dothis
>?cmsg
>
>
>This gives an error (with or without the semi-colon). Is there a way to build up a command over more than one line?
>Cyril


You do not need the ";" on each line .. however, if you want to keep it there to make it easier to cut and paste this code elsewhere, you can do this if what you are building is one command line.
TEXT TO dothis
cmsg = 'A' + ;
'B'+ 'C'
ENDTEXT
dothis = ALLTRIM(CHRTRANC( dothis, CHR(13) + CHR(10) + CHR(9) + ";", " " ))

&dothis
?cmsg
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform