Arsip: Biaya pemakaian
more 17 years ago
pilot
mas/mba gimana cara menampilkan jam 00:00:00 (hh mm ss) pd panel 1,
kemudian apabila tombol start dipakai maka jam juga jalan, disisi lain
panel 2 menampilkan biayanya, jika diasumsikan 1 jam = 5000. seperti
program billing gitu. terima kasih.
more 17 years ago
DelphiExpert
uses DateUtils;
var StartTime: TDateTime;
procedure Start;
begin
StartTime:= Now;
end;
procedure TimerOnTimer(Sender: TObject);
const CostPerSec = 5000 / 60;
var TempCost: Float;
begin
Panel1.Caption:= FormatDateTime('hh:mm:ss', Now - Start);
TempCost:= SecondsBetween(Start, Now) * CostPerSec;
Panel2.Caption:= FormatFloat('Rp. 0.00', TempCost);
end;
kira-kira begitulah ... :mrgreen:
more 17 years ago
simba
Gak semudah itu, DE! :lol: Kalo ada yg dpt diskon, kalo hitungannya per 5 menit, kalo ada pembulatan waktu, kalo ada yg sekalian ngeprint, kalo yg pake anaknya yg punya, kalo ... silakan lanjut sendiri ... gimana dong? Huahuahuahuahua... :lol:
more 17 years ago
DelphiExpert
lah om pilot nanya'nya cuman gitu doank xixixi... ya ngga' ada pertimbangan lain yg dimasukkan pula huwakakak :mrgreen:
more 17 years ago
pilot
Sebelumnya terima kasih. saya coba dulu nti klo ada pertanyaan lagi mohon bantuannya. ya mas
more 17 years ago
dmay
@DelphiExpert: const CostPerSec = 5000 / 60kayaknya 5000/3600 bozz kalo itu cuman 1menit = 5000 dong :) mohon koreksi kalo salah :) ---sama - sama belajar mencari jati diri di dunia fana ini--
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
- OOT: TRAWPrinter adakah yg sudah coba
by imunk in OOT more 18 years ago - Aplikasi tetap jalan saat form menu utama ditutup
by hendrahongdexin in Hal umum tentang Pascal Indonesia more 14 years ago - SELAMAT TAHUN BARU 2007
by Akuna-Matata in OOT more 17 years ago - komponen untuk tampilan xp
by ijal in Tip n Trik Pemrograman more 17 years ago - Sistem Informasi
by bhenux in Hal umum tentang Pascal Indonesia more 18 years ago - Hasil Print Rata Kanan
by rusli_chow in Tip n Trik Pemrograman more 16 years ago - componen menampilkan *.doc atau *.Pdf
by hafiezd in Tip n Trik Pemrograman more 15 years ago - KONEKSI database INFORMIX di delphi
by DeulleDo-X in Hal umum tentang Pascal Indonesia more 18 years ago - quickreport
by yantoisc in Hal umum tentang Pascal Indonesia more 18 years ago - Menghitung Jumlah Cell di stringgrid ?
by jajang in Hal umum tentang Pascal Indonesia more 16 years ago