Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TEXT ... ENDTEXT question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01307554
Message ID:
01307559
Views:
8
Cyril,

You do not need the semi-colon, and it will not work for the macro anyways, the following will work fine:
* PRETEXT 8 IS TO remove LF and NOSHOW so cancel display on screen
TEXT TO dothis NOSHOW PRETEXT 8
cmsg = 'A' +
'B'+ 'C'
ENDTEXT

&dothis
?cmsg
>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
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform