Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Text / endtext problem
Message
 
 
À
23/10/2006 20:21:00
Mike Sue-Ping
Cambridge, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01164020
Message ID:
01164024
Vues:
13
This message has been marked as the solution to the initial question of the thread.
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)
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform