Thema: Delphi syntax ord(x)

Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#2

Re: syntax ord(x)

  Alt 27. Feb 2007, 15:39
Hi,

ListBox1.Items.Add(IntToStr(ord(b[1]));

Ord() erwartet einen Char und keinen String

PS: Wobei ich davon ausgehe das du mit

b := Copy(text, 0, i); EIGENTLICH

b := Copy(text, i, 1); meinst.. sonst bekommst du nämlich keine Chars

Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat