Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing a debit to negative amount
Message
 
À
07/12/1999 10:56:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00299782
Message ID:
00300339
Vues:
29
Hi Kevin,
I know it's probably old-fashioned, but this is how I do it


Function Sign_Transaction_Amt(nAmt,cTran_Type)


#define TRANSACTION_IS_A_DEBIT allt(upper(cTran_Type)) == 'DB'

if TRANSACTION_IS_A_DEBIT
nAmt = nAmt * -1
endif

return(nAmt)
endfunc

Cheers

Pete Kane
Regards,
Peter J. Kane



Pete
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform