Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying string with apostrophe
Message
De
17/08/2010 15:59:01
 
 
À
17/08/2010 15:03:56
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01476888
Message ID:
01476903
Vues:
43
>Hi,
>
>This should be an easy one for someone.
>
>I have code like this:
>
>
message = "This plan is not applicable for the Insured's Age and/or Sum Assured";
>
>but when this string is displayed, it cuts off at the apostrophe. I've tried it like this:
>
>
message = @"This plan is not applicable for the Insured's Age and/or Sum Assured";
>
>but the same thing. How do I get this to display the full string?

WAG - maybe you have to escape single quotes i.e.
message = "This plan is not applicable for the Insured''s Age and/or Sum Assured"
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform