Anonymous user
Character codes: Difference between revisions
→{{header|Visual Basic .NET}}: Added Vim Script
(Updated D entry, removed the cast.) |
(→{{header|Visual Basic .NET}}: Added Vim Script) |
||
Line 1,181:
<lang vba>Debug.Print Chr(97) 'Prints a
Debug.Print [Code("a")] ' Prints 97</lang>
=={{header|Vim Script}}==
The behavior of the two functions depends on the value of the option <code>encoding</code>.
<lang vim>"encoding is set to utf-8
echo char2nr("a")
"Prints 97
echo nr2char(97)
"Prints a</lang>
=={{header|Visual Basic .NET}}==
|