-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto Postsplit sample data & header file(0)
 by andtho89
 on 23.May at 08:49
goto Postpemanggilan frame(5)
 by andtho89
 on 23.May at 02:13
goto Postjumlah komponen maksimal dalam sebuah project(6)
 by d4mnf1y32
 on 21.May at 12:16
goto Posttanya grayscale to biner dengan scanline(1)
 by luckynvic
 on 20.May at 20:44
goto Posttanya looping biner to matriks(1)
 by luckynvic
 on 20.May at 20:10
goto Postsql error:acces denied for user....(2)
 by nasbms
 on 19.May at 16:54
goto Posttanya AvLock(0)
 by azuriza
 on 19.May at 11:24
goto PostGet TDBEdit Value Menggunakan LookUp Grid(10)
 by henry_sys
 on 18.May at 11:27
goto Postmenghitung record dalam perulangan(4)
 by idhiel
 on 16.May at 13:53
goto Posttanya ascii(4)
 by mas_kofa
 on 16.May at 12:11
goto PostRawPrint Untuk Delphi XE2(0)
 by adewijaya
 on 15.May at 22:34
goto Postdatabase error..(4)
 by idhiel
 on 15.May at 15:57
goto Postbekasi, pt arila putra mahkota(3)
 by mas_kofa
 on 15.May at 15:37
goto Postbagaimana cara membaca file *.doc dg delphi?(0)
 by ficky
 on 15.May at 06:14

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: The Longue
8 months, 3 weeks ago
RE: belajar pascal
8 months, 3 weeks ago
RE: Perkenalan dan Absen
8 months, 3 weeks ago
RE: Alhamdulillah Buka Puasa Bersama
8 months, 4 weeks ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
8 months, 4 weeks ago
Lintas Situs
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
musafirOffline
Location:
7 Post subject: ambil informasi dari error deplhi  PostPosted: 17/Jan/2012 19:03
onConfident


Joined: 27-Dec-2011
Posts: 24

Status: Offline
Para Master Delphi sekalian... gimana ya caranya kita mengambil error yang ditimbulkan saat run delphi ke MessageBox ya?

Jadi saat kita meng-Handle Exceptiom error,, tapi error yang muncul melalui pesan messagebox Delphi kita ambil informasinya dan di kirim ke Captain label tertentu misal muncul error seperti ini :

"Can't find c:\table.txt"

maka informasi dari messagebox kita kirim ke Label:

//...
:abel1.caption='Can't find c:\table.txt';
//

jadi informasinya dikirim ke label.caption. Karena saat penggunaan query di sql pasti error yang dimunculkan akan selalu berbeda tergantung dari kesalahan query yang kita ketikkan..

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
mas_kofa
Location: New York Arto
Post subject:   PostPosted: 18/Jan/2012 10:40
onElite


Joined: 18-Mar-2006
Posts: 1753
Location: New York Arto
contoh :

code : pascal
  1. function ExecDTable(zqr: TDTable; Destroy: boolean): boolean;
  2. var
  3. str: string;
  4. begin
  5. str := zqr.SQL.Text;
  6. try
  7. zqr.Open;
  8. result := true;
  9. except
  10. on E:Exception do
  11. begin
  12. Label1.Caption := str #13#10 E.Message;
  13. result := false;
  14. if Destroy then zqr.Free;
  15. end;
  16. on E:EDatabaseError do
  17. begin
  18. Label1.Caption := str #13#10 E.Message;
  19. result := false;
  20. if Destroy then zqr.Free;
  21. end;
  22. end;
  23. end;
Parsed in 0.004 seconds, using GeSHi

_________________
Pay Per Day | Pesbuk
Me isn't mine
Aku Ini adalah satu

Cerdik seperti ular, Tulus seperti merpati
 
 View user's profile Send private message  
Reply with quote Back to top
henry_sysOffline
Location:
Post subject:   PostPosted: 18/Jan/2012 12:26
onIntermediate


Joined: 24-Sep-2011
Posts: 34

Status: Offline
Pake TApplicationEvents
reference :
http://docs.embarcadero.com/products/ra ... ption.html
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic





Powered by PNphpBB2 © 2003-2009 The Zafenio Team
Credits


| Register | Lost Password ? |