Arsip: Tanya tentang enkripsi (baru belajar neh)
more 18 years ago
goosemunk
aku mau tanya neh tentang delphi untuk keperluan enkripsi, langsung aja ya :
1. gimana caranya untuk menampilkan teks pada file teks (.txt, .doc,dll) pada editor text di delphi. ex. pertama browse file teks kemudian kita open dan teksnya muncul di editor yang kita buat (kaya' notepad gitu). denger2 katanya pake wordwrap,itu apaan ya?caranya gimana?
2. ada yang bisa ato ada yang tau syntaxnya untuk dapetin nilai ASCII dari sebuah karakter ga di delphi?
ex. A = 65, B = 66, a = 97, dst..
3. ada yang tau gak gimana caranya ngubah bilangan desimal ke bilangan biner di delphi?dan sekalian gimana kita melakukan perhitungan bilangan biner itu.
wah,kok banyak juga ya..maklum baru belajar neh..mohon bantuannya ya..
makasih sebelumnya.
more 18 years ago
xerion
helo, salam kenal....
aku punya satu cara , mungkin bisa :)
Solusi :
1. taruh TMemo di form kamu lalu tambah juga TOpenDialog.
Kasih juga tombol untuk membuka open dialog :
if OpenDialog1.Execute then begin Memo1.Lines.LoadFromFile(Opendialog1.filename) end;
untuk warptext cari aja property Memo1 untuk WarpText jadi TRUE.
2. ???
3. ???
semoga bermanfaat. maklum saya juga masih pemula ....
more 18 years ago
ZeAL
2. Kalo gak salah CHR(char).. untuk mbalikinnya kalo gak salah ORD(int)... Eh, bener gak yah..?? gak yakin sih... lupa...
3. emm.. ini gue gak tau dah... :P
Teken aja F1.. cari di helpnya delphi, ada kok... Gue gak ada delphi di PC kantor... :(
more 18 years ago
deLogic
[2]
Unit: System
Syntax: function Chr(X: Byte): Char;
Description
Chr returns the character with the ordinal value (ASCII value) of the byte-type expression, X.
Unit: System
Syntax: function Ord(X: Char): Byte;
Description
X is a Delphi ordinal-type expression. The result is the ordinal position of X; its type is the smallest standard integer type that can hold all values of X's type.
Ord cannot operate on Int64 values.
more 16 years ago
ntuuus
[2]
unit Ubaca_ascii;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
var
str : string;
begin
str :='tombol yang ditekan memiliki kode :'+ IntToStr(Key);
Application.MessageBox(Pchar(str), 'informasi',MB_OK or MB_ICONINFORMATION);
end;
end.
{tu cuma pake form aja koq, ntar waktu kamu pencet tombol keyboard dia akan muncul kode ASCII tombol}
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 4 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 4 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 5 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 12 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 12 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 12 years ago
Random Topic
- MyIsam VS InnoDB
by reza_onclick in MySQL more 16 years ago - Export to Ms.Word
by bboyz in Hal umum tentang Pascal Indonesia more 17 years ago - error!!!
by marvel in Enginering more 19 years ago - Code delphi untuk interface ke led display
by sp1d3r_n3tz in Enginering more 16 years ago - Integer Linear Programming
by EkoIndri in Enginering more 17 years ago - Dynamic Program
by hendra_sir84 in Hal umum tentang Pascal Indonesia more 17 years ago - Function gak ngembaliin nilai ??? tanya kenapa
by Manz in Enginering more 18 years ago - Error Win 2003
by kaka-delphi in OOT more 19 years ago - bingung masalah database....
by x-nodes in Hal umum tentang Pascal Indonesia more 19 years ago - [ASK] Timer buat ukur kecepatan proses
by RoenZ in Enginering more 17 years ago