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:
01372964
Views:
19
>>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)
>
The file is created in my case too. But the resulting XSD file was not valid. And I was indenting the TEXT and ENDTEXT key words. The solution, as suggested by Al is to use PRETEXT 7.

Thank you for your help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform