Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on TEXT ENDTEXT use
Message
De
28/01/2012 21:38:13
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01533979
Message ID:
01533988
Vues:
58
The word PRETEXT is misleading, as far as I understand your question PRETEXT=15 will give you exactly what you want.

>I will try it although I don't understand how it will change the result. I thought PRETEXT "manages" only what is "before" each line. But maybe I am missing something. Thank you.
>
>>Use pretext 15 instead of 7.
>>
>>>Hi,
>>>
>>>I am trying to change assigning a literal string to a variable to using TEXT ENDTEXT (literal can sometime exceed the allowed length). But I don't know how to use the TEXT ENDTEXT so that the resulting variable is one string without spaces. Here is an example:
>>>
>>>Literal (exactly how it is in my code with all the semicolons):
>>>
>>>cSqlCommand = "select mytable.field1, mytable.field2 from mytable " + ;
>>>" left join mytable2 on mytable.pk = mytable2.pk " + ;
>>>" where " + cSomeFilterExpr + " order by field1, field2 "
>>>
>>>
>>>My attempt at TEXT ENDTEXT:
>>>
>>>TEXT TO cSqlCommand TEXTMERGE NOSHOW PRETEXT 7
>>>       select mytable.field1, mytable.field2 from mytable
>>>       left join mytable2 on mytable.pk = mytable2.pk 
>>>       where  <<cSomeFilterExpr>> order by field1, field2
>>>ENDTEXT
>>>
>>>
>>>The problem (as I see it) is that in the bottom case (TEXT TO ENDTEXT) the variable cSqlCommand (in Messagebox()) looks just like it is on the screen. And it should be all in one string. What am I missing? TIA.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform