We all copied that from back in our sbt and foxbase + days, or at least I
did.

-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Desmond Lloyd
Sent: Wednesday, November 20, 2013 1:49 PM
To: ProFox Email List
Subject: VFP6: Why would anyone....

An Odd Question...

Have this rather old "legacy" application.  In extending order totals
(qty*cost) it calls a function.


STORE VAL(SUBSTR(STR(0.01  * (mqty * mprice * (100 - mdisc)), 12, 2), 1,
12)) TO  ;
      mextprice

Was able to "duplicate" by using the actual numbers....  This obviously
returns the calculated amount with two decimal places,  12 bytes wide....

Why would you do that?

Regards,
Desmond


--- StripMime Report -- processed MIME parts --- multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to