Amount in words - Passing Parameters

shibily
Member Posts: 89
Hi,
How can i print decimal amount in words. I have tried using report 1401. However i am not sure about the parameters to pass in the function 'FormatNoText' ,Especially the first parameter ' VAR NoText : ARRAY [2] OF Text[80] ' .
Anybody please explain this.
Thanks in advance.
Shibily
How can i print decimal amount in words. I have tried using report 1401. However i am not sure about the parameters to pass in the function 'FormatNoText' ,Especially the first parameter ' VAR NoText : ARRAY [2] OF Text[80] ' .
Anybody please explain this.
Thanks in advance.
Shibily
0
Comments
-
You can look at the code in this report 1401, DataItem Integer "PrintCheck", how this function is used:
FormatNoText(DescriptionLine,CheckLedgEntry.Amount,BankAcc2."Currency Code");
DescriptionLine is a global variable, of type Text80, with 2 dimensions (= array).
The other parameters are clear I suppose.
DescriptionLine[1] will contain the first 80 characters of the generated text, while DescriptionLine[2] will contain the other 80 chars.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Luc Van Dyck wrote:You can look at the code in this report 1401, DataItem Integer "PrintCheck", how this function is used:
FormatNoText(DescriptionLine,CheckLedgEntry.Amount,BankAcc2."Currency Code");
DescriptionLine is a global variable, of type Text80, with 2 dimensions (= array).
The other parameters are clear I suppose.
DescriptionLine[1] will contain the first 80 characters of the generated text, while DescriptionLine[2] will contain the other 80 chars.
Thanks for the reply.
I tried with the same function. When i call the function what the function expects as the first parameter(DescriptionLine)?
Thanks
Shibily0 -
I said it already in my answer: find the global variable called DescriptionLine in report 1401, and copy this one in your code.
You can view also the properties for this variable, and then you'll see that it has 2 dimensions.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Hello,
FormatNoText(DescriptionLine,CheckLedgEntry.Amount,BankAcc2."Currency Code");
The first parameter of the above function does not expect anything but is a type of variable which will contains the return value of the function. You can display its value in section as DescriptionLine[1] and DescriptionLine[2].
Regards,
Rakesh0 -
Just linking them together
viewtopic.php?f=23&t=144410 -
Hi,
I used the following steps
DescriptionLine[1] := Text021; // Text021=VOIDVOIDVOID
DescriptionLine[2] := DescriptionLine[1];
FormatNoText(DescriptionLine,556,amnt); // amnt := Currency.Code (selected USD)
MESSAGE(DescriptionLine[1]);
Message i got displayed is " **** HUNDRED AND ZERO ONLY " . I am getting the same output for any amount i pass in the function.
Please give any suggestions
Thanks
Shibily1 -
Run the debugger and check whether any amount is carried to report 1401. It happened with me once when I send a flow field value without using CalcFields.CA Sandeep Singla
http://ssdynamics.co.in0 -
Hi,
Currently i am checking by using a new screen by passing the parametrs hard coded .
I used the functions ' FormatNoText ' and ' AddToNoText ' from the report 1401.
Thanks
Shibily0 -
Hi All,
I still cant find any solution for this issue.
Shibily0 -
Hi All,
In reference to shibily's post, I am too getting the only message as " **** HUNDRED AND ZERO ONLY " and I am unable to resolve it.
Could some tell me, how It can be resolved.
Many Thanks.Chetan
Bangalore0 -
We are suppose to add the below code before we call the FormatNoText() which will initialize the text and then will display the correct wordings.
CheckReport.InitTextVariable;
CheckReport is of Type "Report" and subtype "Check".Chetan
Bangalore0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions