ASCII characters as an output from NAV

akthar
Member Posts: 30
Dear All,
We have a requirement from one of our client, client wants to upload the payments file in the banking software where the payment file format was given by the bank. We are in process of developing the requirement through XML object, according to the payment format shared by bank there are some special characters in the file like smile symbol and heart symbol, these symbols has meaning to the file according to bank.
Can anyone help me, that how we can generate ASCII Characters i.e. 'smile' and 'heart' symbol
Waiting for all your valuable feedback
Thanks and Regards
Abdul Gaffar
We have a requirement from one of our client, client wants to upload the payments file in the banking software where the payment file format was given by the bank. We are in process of developing the requirement through XML object, according to the payment format shared by bank there are some special characters in the file like smile symbol and heart symbol, these symbols has meaning to the file according to bank.
Can anyone help me, that how we can generate ASCII Characters i.e. 'smile' and 'heart' symbol
Waiting for all your valuable feedback
Thanks and Regards
Abdul Gaffar
0
Comments
-
char := <integer ascii value of symbol>
You could have easily found this wit the help function...0 -
I find on search that for generating smile symbol we need to press Alt+1 same way Alt+3 for generating heart symbol. But know the point is how to send ALT+ command in NAV code0
-
the char datatype is your alt key. With the alt-key pressed the computer knows that you don't want to type 3, but the ascii char on place 128+3.
this however is not ascii but ansi with codetable x.
just write a report with datatype integer, setrange(number,1,255)
add global var of type char.
Onaftergetrecord
var := number
in the section display var and number: voila every symbol you can export with NAV.0 -
Thank you sog
I had generated the report as you said and it has generated the ascii charactes from 1 to 255. But unfortunately i cannot able to see heart and smile symbol in the list. Do you know the exact ascii value for this and also is heart symbol belongs to ASCII value?0 -
Dear akthar,
There is no heart nor smiley symbol in the ASCII dataset. ASCII is 7 bits long and contains 128 characters.
The heart symbol and smiley symbol are available on Code Page 437
So the exact position of the heart symbol is 130 (127 +3).
However since this is a bankstatement you might just want to send char heart := 3 for the heart and char smiley := 1
Because ascii table's first 33 characters are control characters that are being used as symbols in codepage 437 depending on context.
So the smiley you see might be in the bank statement "Start of header" and the heart means "end of text".0 -
Thank you sog
Its working now thanks a lot(L)
0 -
I am wondering why they are using XML when the "control" cahracters needs to be inside... XML is used to not use such a control chars.. yeah, it looks like some old text format "encapsulated" into XML.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