Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.09.03;
Скачать: CL | DM;

Вниз

Ошибка в справке Delphi   Найти похожие ветки 

 
Piter ©   (2006-08-07 19:09) [0]

пример на функцию IntToHex:


The following example uses an edit control, a button, and a label on a form. When the button is clicked, the hexadecimal value of each character in the edit control is displayed in the label.

procedure TForm1.Button1Click(Sender: TObject);

var
 i: Integer;
begin
 Label1.Caption := "";
 for i := 1 to Length(Edit1.Text) do
 begin
   try
     Label1.Caption := Label1.Caption + IntToHex(Edit1.Text[i],2) + " ";
   except
     Beep;
   end;
 end;
end;


Chr что ли забыли?


 
Reindeer Moss Eater ©   (2006-08-07 19:31) [1]

Byte забыли


 
Joe_from_smart   (2006-08-07 19:52) [2]

А куда там chr?


 
Piter ©   (2006-08-07 21:03) [3]

ой, я имел в виду Ord конечно :)



Страницы: 1 вся ветка

Текущий архив: 2006.09.03;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.041 c
15-1155013808
Ega23
2006-08-08 09:10
2006.09.03
С Днём рождения! 8 августа


15-1154325392
Jeer
2006-07-31 09:56
2006.09.03
Флаг и гюйс поднять !


15-1153117683
evvcom
2006-07-17 10:28
2006.09.03
Феодосия MP


4-1147002915
Dstr
2006-05-07 15:55
2006.09.03
ApplicationEvents1Message


15-1154623948
Petr V. Abramov
2006-08-03 20:52
2006.09.03
Система "Аллегро"