Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TEXT ..ENDTEXT question
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01536945
Message ID:
01536952
Vues:
57
lField3Exist = .F.

TEXT TO lcText TEXTMERGE NOSHOW PRETEXT 15
  INSERT INTO MYTABLE (FIELD1, FIELD2 <<IIF(lField3Exist, ", Field3", "")>>) 
  		VALUE (?MYTABLE.FIELD1, ?MYTABLE.FIELD2 <<IIF(lField3Exist, ", ?MYTABLE.FIELD3", "")>>)
ENDTEXT
>
>How can I make the TEXT..ENDTEXT to add or remove text based on some variable value. For example. Say I have this code:
>
>
>TEXT TO cText NOSHOW
>  INSERT INTO MYTABLE (FIELD1, FIELD2) VALUE (?MYTABLE.FIELD1, ?MYTABLE.FIELD2)
>ENDTEXT
>
>
>Now I want to add FIELD3 to the above expression but only if some variable lField3Exist is .T. How would I change the above expression? TIA.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform