How to print % symbol in confirm message?

sergio_nav
Member Posts: 17
Hi,
I'm trying print % symbol in text constant but I have some problems..
This is my C/AL code:
IF CONFIRM(TextConstant) THEN BEGIN
...
END;
And this is the TextConstant value:
Do you want to record the invoice with 21% VAT?
But, when the message is showing in the screen, I can see this text:
Do you want to record the invoice with 21 VAT?
Evidently, the problem is the percentaje symbol because NAV used to works with variables... then, how can I print this character in confirm message?
I was read this post http://dynamicsuser.net/forums/p/10716/54112.aspx but not help me...
Thanks in advance for our help
I'm trying print % symbol in text constant but I have some problems..
This is my C/AL code:
IF CONFIRM(TextConstant) THEN BEGIN
...
END;
And this is the TextConstant value:
Do you want to record the invoice with 21% VAT?
But, when the message is showing in the screen, I can see this text:
Do you want to record the invoice with 21 VAT?
Evidently, the problem is the percentaje symbol because NAV used to works with variables... then, how can I print this character in confirm message?
I was read this post http://dynamicsuser.net/forums/p/10716/54112.aspx but not help me...
Thanks in advance for our help
Sergio
0
Comments
-
Bit of a pragmatic, quick workaround :
make your textconstant : "Do you want to record the invoice with 21%1 VAT?"
thenif CONFIRM(strsubstno(TextConstant,'%')) then begin
0 -
Hi MBerger
Thanks for your help but, the solution you proposed is not valid...
I checked the code and is valid (works with other characters) but not with % symbol...
Any idea?
Thanks!Sergio0 -
Try with this.
Ch :='%'; // Ch is Char in Data typeNow or Never0 -
sergio_nav wrote:I checked the code and is valid (works with other characters) but not with % symbol...0
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