Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text / endtext problem
Message
From
23/10/2006 20:21:00
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Text / endtext problem
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01164020
Message ID:
01164020
Views:
56
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)
TIA
Mike
Next
Reply
Map
View

Click here to load this message in the networking platform