Arsip: komponen check box

more 16 years ago
vera
mas2 aku nanya donk
aku punya komponen checbox sekitar 20 trus ada captionnya
nah gmana caranya agar aku bisa nampung caption check box yg ke cjeck list
ke dalam komponen memo
aku dah coba seperti ini
procedure TFrmProduk.takeCaption;
var
i: integer;
begin
for i := 1 to ComponentCount - 1 do
begin
if Components[i] is TCheckBox then
begin
if (Components[i] as TCheckBox).Checked = true then
Memo1.Lines.Add(Components[i].Name);
end;
end;
end;
untuk name bisa cman ko untuk caption ko ga bisa
tolong donk

more 16 years ago
jrp
Memo1.Lines.Add(Components[i].Name);diubah menjadi : Memo1.Lines.Add(TCheckBox(Components[i]).Caption); dan juga loop dengan i harusnya dimulai dari 0, bukan 1. jrp

more 16 years ago
vera
makasih mas udah bisa.
cma ad 1 lgi nih .
klo msalkan di check box.captionnya itu seperti ini
1.makan
2.ngemil
13.bangun
17. belanja
nah yg ingin diambilnya itu hanya text yg tidak mengandung titik dan angka
gmana mas
mksih sbelumnya

more 16 years ago
mas_kofa
sCaption := TCheckBox(Components[i]).Caption;
s := '';
for i := 1 to length(sCaption) do
if not (sCaption[i] in ) then
s := s + sCaption[i];
sCaption := s;

more 16 years ago
vera
procedure TFrmProduk.takeCaption;
var
i, j: integer;
scaption, s: string;
begin
Memo1.Lines.Clear;
for i := 0 to ComponentCount - 1 do
begin
if Components[i] is TCheckBox then
begin
if (Components[i] as TCheckBox).Checked = true then
scaption := (TCheckBox(Components[i]).Caption);
end;
s := '';
for j := 1 to length(sCaption) do
if not (sCaption[j] in ) then
s := s + sCaption[j];
sCaption := s;
Memo1.Text := s;
end;
tpi yg keluar hanya 1 caption check box saja bagaimana yah mas
more ...
- Pages:
- 1
- 2
reply |
Report Obsolete
AI Forward

🚀 We're thrilled to partner with Alibaba Cloud for "AI Forward - Alibaba Cloud Global Developer Summit 2025" in Jakarta! Join us and explore the future of AI. Register now:
https://int.alibabacloud.com/m/1000400772/
#AlibabaCloud #DeveloperSummit #Jakarta #AIFORWARD
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
- kompresi citra metode shannon-fano
by katana_ontsuki in Tutorial & Community Project more 15 years ago - logika fuzzy
by fendi in Delphi.NET more 16 years ago - Delphi Powerfull
by ksatria_77 in OOT more 18 years ago - Mengambil kata per kata
by budi_bunga in Tip n Trik Pemrograman more 17 years ago - DATABASE error: NULL type <> STRING type
by nnd_ms in Hal umum tentang Pascal Indonesia more 18 years ago - Tanya: Membuat Angka Terbilang ?
by cyber_hecker in Tip n Trik Pemrograman more 19 years ago - Kirim Variabel ke Fast Report
by delphi1st in Tip n Trik Pemrograman more 18 years ago - read email POP3
by jalu in Tip n Trik Pemrograman more 18 years ago - ActiveX FingerPrint SDK
by herux in Multimedia & Graphic Enhancement more 17 years ago - logika/coding/sql untuk membreakdown suatu produk
by paskal14 in Tutorial & Community Project more 15 years ago