Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing a debit to negative amount
Message
 
To
07/12/1999 10:56:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00299782
Message ID:
00300339
Views:
28
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
Previous
Reply
Map
View

Click here to load this message in the networking platform