|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
[Pascal] Convert byte to char
I'm trying to figure out a way in which I can convert a byte to a char in Pascal (using FreePascal incase you are curious). I know there must be a way, but I can't for the life of me think of any possible solution. Any help is appreciated.
|
|
#2
|
|||
|
|||
|
Quote:
Code:
function chr(x: Byte): Char; begin Result:=Chr(x); end; ... For Delphi, it's defined in "SysUtils.pas" ("Uses SysUtils;") HTH? M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
||||
|
||||
|
Thanks for the help. That actually wasn't exactly what I needed, I knew about this, but I didn't think it would solve my specific problem. I found another method to get my final desired result. But thanks anyways.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > [Pascal] Convert byte to char |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|