| Author |
Message |
s0t4 |
| Location: |
|
Post subject: tanya: [Error] time_limit.pas(44): Overloaded procedure
Posted: 03/May/2011 11:49
|
|
onConfident

Joined: 01-Jul-2010
Posts: 24
Status: Offline
|
|
Kenapa ya procedure aku kalau di run keluar error :
[Error] time_limit.pas(44): Overloaded procedure 'kirim_email' must be marked with the 'overload' directive
Procedurenya :
procedure kirim_email(id_booking:integer;host1,dari,nama,penerima,subj,pesan:string);
Thnks |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: 03/May/2011 13:42
|
|
onMage

Joined: 06-Feb-2006
Posts: 2401
|
|
Itu berarti ada yang menggunakan nama procedure yang sama, solusinya harus ditambahi tag overload:
code : pascal procedure kirim_email(param1, param2...); overload; procedure kirim_email(); overload;
Yang perlu diperhatikan, jumlah beserta type data parameternya tiap procedure harus beda. |
_________________ Dude, if you don't understand the basics and just want to get someone else write the code for you, it means you really shouldn't study computer science. Find a different field.
http://delphiexpert.wordpress.com
|
| |
|
|
|
 |
|
aday-gate |
| Location: Tangerang-Banten |
|
Post subject:
Posted: 03/May/2011 22:32
|
|
onConfident
Joined: 23-Jul-2009
Posts: 29
Location: Tangerang-Banten
|
|
heran perasaan pesan errornya udah jelas banget..
mungkin begini akibatnya kalo coding tanpa basic |
_________________ "Newbie 4ever!!!"
|
| |
|
|
|
 |
s0t4 |
| Location: |
|
Post subject:
Posted: 04/May/2011 13:32
|
|
onConfident

Joined: 01-Jul-2010
Posts: 24
Status: Offline
|
|
Thnks mas DelphiExpert
Saya sudah coba pakai itu tetapi masih error, tetapi salahnya ternyata lebih konyol lagi karena kesalahan yang sebenarnya saya lupa isi
Form1.procedure kirim_email(...).
Untuk aday-gate. Terima kasih atas solusinya... maklum bukan programmer, cuma hobi... |
|
|
| |
|
|
|
 |
s0t4 |
| Location: |
|
Post subject:
Posted: 04/May/2011 13:37
|
|
onConfident

Joined: 01-Jul-2010
Posts: 24
Status: Offline
|
|
maksudnya :
Procedure Form1.kirim_email(...) |
|
|
| |
|
|
|
 |
|
|