Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text / endtext problem
Message
From
24/10/2006 10:35:12
Mike Sue-Ping
Cambridge, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01164020
Message ID:
01164090
Views:
15
Thanks Sergey.

I had an include file that was causing the #DEFINE.

>Mike,
>
>Remove or #UNDEF
>#DEFINE false .F.
>
>>I'm trying to generate an HTML file that has some javascript in it. When I try to create and set a variable to false, the TEXT command is translating this to .F. and of course the script complains when it runs. How do I get the TEXT command to not convert false to .F.?
>>
>>Here's what I've got,
>>
>>
>>SET TEXTMERGE OFF NOSHOW
>>STORE FCREATE(somehtmlfile) TO _TEXT
>>TEXT
>><html><head><title>
>>
>>blah, blah, blah...
>>
>><script>
>>var myVar1=2000;
>>var myVar2=false;      // <<-- This gets written out as "var myVar2 = .F."
>>
>>blah, blah, blah...
>>
>></script>
>>ENDTEXT
>>=FCLOSE(_TEXT)
>>
>>
Previous
Reply
Map
View

Click here to load this message in the networking platform