Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DR instead of DB
Message
De
26/08/2008 12:48:10
 
 
À
26/08/2008 12:42:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01341863
Message ID:
01341870
Vues:
17
This message has been marked as a message which has helped to the initial question of the thread.
>>What exactly do you mean here?
>
>A word to the wise. :)
>
>In TRANSFORM we can format the data.
>
>@C Appends CR to positive Currency or Numeric values to indicate a credit.
>
>@X Appends DB to negative currency or numeric values to indicate a debit.
>
>I want DB to be DR which is standard for Debit at least in accounting books.
>How can i achieve this in VFP?

You can use strtrans().
?Strtran(Transform(-10,'@X'),'DB','DR')
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform