Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Showing percentage sign in variable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01040979
Message ID:
01040988
Vues:
13
Not quite clear, what you want to do. val("%") equal 0.
If the variable should contain a NUMBER in percentage, then you cannot "append" a character to it. If the variable should contain a string, then:

store trans(cmscomp.percent)+"%" to lccomplist

>I would like to append the % sign to a variable. My syntax reads:
>
>
>store cmscomp.percent+val("%") to lccomplist
>
>
>But this comes out like 90.00 instead of reading 90.0%
>
>How can I achieve this?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform