Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If I have 3 Eu in this hand and 2 $ in the other ..
Message
De
21/12/2001 09:16:00
 
 
À
19/12/2001 17:03:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00595941
Message ID:
00597244
Vues:
22
You are correct, the separator is present but (V7.0) the currency symbol is no longer visible. I tried
set currency to 'DM '
set separator to ','

? Trans(1234.56,'@$ 9,999.99')
? Trans(1234.56,'@$ $,$$$.99')
? Trans(1234.56,'@$ $$,$$$.99')   && Dollar sign shows :<
? Trans(1234.56,'@$ $$$,$$$.$$')  && Currency shows but...
but none produced a currency symbol in the correct place.

Does it work for you, and if so what version(s) of VFP.

Thanks


>The currency setting is @$< space >formatting...
>
>Try
>
>? trans(12345.56,'@$ 9,999,999.99')
>
>
>to get your comma etc.
>
>Mike
>
>
>>Yes now that you mention it. It looks like a bug doesn't it?
>>
>>Anyone have any suggestions regarding the set separator setting not working with the leading @ sign.
>>
>>Thanks
>>
>>>>>How do I format a currency with something other than a dollar sign. I have tried setting the Windows settings to another currency and then setting VFP to use the windows settings but when I
>>>>>? trans(12,345.56,'$$,$$$.99')
>>>>>
>>>>>
>>>>>it is still $
>>>>>
>>>>>Thanks
>>>>
>>>>Answered my own question!
>>>>? trans(12345.56,'@$$,$$$.99')
>>>>
>>>>
>>>>the @ sign forces the alternate currency symbols.
>>>
>>>
>>>Did you notice you lost your comma? Seems to be a result of using the @.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform