Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building an if endif statment
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Building an if endif statment
Divers
Thread ID:
00490883
Message ID:
00490883
Vues:
43
Hello Everyone.

Please, I need help with making a if, endif more generic.

Is there some kind of statement I can use, maybe with the '%' that's used in select statements to make this work with any horse whose name contains an apostrophy.

****begin if
if thisform.hscmbstallions.value <> " "
if alltrim(thisform.hscmbstallions.value) = "CAM'S CARD SHARK"
store " booked_to = " + '"' + ("CAM'S CARD SHARK") +'"'+ " and " to mbookedto
else
store " booked_to = '" + alltrim(thisform.hscmbstallions.value ) + "' and " to mbookedto
endif
endif
***end of endif

TIA

Jim Harvey
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform