Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How could I call a function within a VFP report? 1

Status
Not open for further replies.

Gert

Programmer
Apr 9, 2000
240
0
0
DO
I need to call a function that convert number to word with a VFP report ?? how could I do this?
exa:
=moneyword(mnumber)

thanks in advance
 
I insert it in, but it got me an error:

=moneyword(mnumber)
* no file prg.

i try with to iqual
==moneyword(mnumber)

but doesn't work
 
Hi Gert,

With in the report... add a box just as you do for a field.. But in its expression put the code..
moneyWord(mNumber)

YOu dont have to use = or == signs.

In the expression I provided..

moneyword is your FUNCTION or PROCEDURE which will have as its first line
PARAMETERS nValue or such numeric variable as input. Then that is processed for converting the input to word and RETURN that cWord value. In your report the FieldBox which holds that said function above should be Character type with required width to hold the return value. :)

If you need more than this, please specify. I will provide a Num2Word utlity for convertion purposes. :) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
HI Gert..

If you want Num2Word.PRG... get it here.. If you need to reach billions.. quite easy to modify that

A Number to word convertion Utility
faq184-2848
:) ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top