Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TEXT ENDTEXT question
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01372948
Message ID:
01372955
Views:
13
>Hi,
>
>How can I make the TEXT .. ENDTEXT work even if the entire block is indented. For example, the following code works:
>
>
>TEXT TO MyFile NOSHOW
><?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
>*-- XSD elementes are here
></xsd:schema>
>ENDTEXT
>
>
>But if I indent the entire TEXT ENDTEXT the code does not work. For example, the following does not work:
>
>
>     TEXT TO MyFile NOSHOW
>     <?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
>     <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
>     *-- XSD elementes are here
>    </xsd:schema>
>    ENDTEXT
>
>
>My guess is that I should use an option PRETEXT of FLAG but I can't seem to figure out which one is the correct value.
>
>Thank you in advance for your help.

What didn't work?
That code works for me:
TEXT TO MyFile NOSHOW
     <?xml version = "1.0" encoding="Windows-1252" standalone="yes"?>
     <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
     *-- XSD elementes are here
    </xsd:schema>
ENDTEXT
MESSAGEBOX(MyFile)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform