Главная страница
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.065 c
2-1155698844
California
2006-08-16 07:27
2006.09.03
Что такое XPManifest ?


2-1155715530
Wolferio
2006-08-16 12:05
2006.09.03
Копирование с заменой файлов


2-1155660880
ex32Le
2006-08-15 20:54
2006.09.03
String To array of byte


15-1155049641
Kerk
2006-08-08 19:07
2006.09.03
Как это понять?


1-1153803713
Zilog_
2006-07-25 09:01
2006.09.03
Как правильно перевести с С на Делфи?