Delphi ORD Function
[ Delphi
Forum ] [ Delphi Tutorials -- by DelphiLand ]
Posted by Brett Kingston on June 09, 2003 at 15:20:38:
What data type is required for Delphi's ORD Function? I have this working if I use a static value in the code (i.e. s := IntToStr(Ord('#'));), but if I want # to be replaced by the value of an input box, I keep getting errors. I have tried converting the input to a string, real, integer, but I have had no luck. I have tried this: var i : integer; s : string; begin i := inputChar.Text s := IntToStr(Ord(i)); lblNum.Caption := S; end; end. ...but with no luck. More compile errors. Can someone help me with an example piece of code? Thanks
Related Articles and Replies:
[ Delphi
Forum ] [ DelphiLand: free Delphi source code, tips, tutorials ]
|
|