Delphi Indonesia - Mobile Edition

nama: pass:

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
irul_anwarOffline
Location:
Post subject: (ASK) Penjumlahan di QReport  PostPosted: 02/Sep/2010 15:01
onNewBie


Joined: 02-Sep-2010
Posts: 3

Status: Offline
gini gan, ane kan bikin progam sederhana yang bisa nampilin hasil print out, saya pake QReport, masalah muncul ketika saya pengen hasil tersebut bisa menjumlahkan secara otomatis sesuai dengan apa yang kita masukkan, berikut picnya:


saya kepengen TQRLabel amount merupakan hasil dari penjumlahan label di atasnya tersebut.

mohon bantunannya ya kawan2 Laughing
 
 View user's profile Send private message  
Reply with quote Back to top
don2103Offline
Location:
Post subject: Re: (ASK) Penjumlahan di QReport  PostPosted: 02/Sep/2010 15:18
onIntermediate


Joined: 24-Aug-2010
Posts: 49

Status: Offline
      irul_anwar wrote:
gini gan, ane kan bikin progam sederhana yang bisa nampilin hasil print out, saya pake QReport, masalah muncul ketika saya pengen hasil tersebut bisa menjumlahkan secara otomatis sesuai dengan apa yang kita masukkan, berikut picnya:


saya kepengen TQRLabel amount merupakan hasil dari penjumlahan label di atasnya tersebut.

mohon bantunannya ya kawan2 Laughing




      Code:

angka:=0;
hasil.value:=angka+uang.value
 
 View user's profile Send private message  
Reply with quote Back to top
irul_anwarOffline
Location:
Post subject: Re: (ASK) Penjumlahan di QReport  PostPosted: 02/Sep/2010 15:24
onNewBie


Joined: 02-Sep-2010
Posts: 3

Status: Offline
      Quote:

      Code:

angka:=0;
hasil.value:=angka+uang.value


maksudnya gimana bro? maklum ane newbie banget nehh..
apa masih perlu pake var .....
 
 View user's profile Send private message  
Reply with quote Back to top
don2103Offline
Location:
Post subject: Re: (ASK) Penjumlahan di QReport  PostPosted: 02/Sep/2010 15:58
onIntermediate


Joined: 24-Aug-2010
Posts: 49

Status: Offline
copas aja source code ini ke tombol klik / cetak yg kamu buat (bitbutton)
      Code:

var
      angka : integer;
begin :
angka:=0;   
hasil.value:=intToStr(angka)+uang.value;
cetak.preview;
end;


uang itu nama field yang ada di tiap2 kolom yg kamu buat itu, alias diatas amount
nah hasil adalah field penjumlahan dari uang begitu kira - kira..

nanti di qreportnya filih dataset/databasenya itu sesui dengan yg kamu buat....
 
 View user's profile Send private message  
Reply with quote Back to top
irul_anwarOffline
Location:
Post subject:   PostPosted: 02/Sep/2010 16:09
onNewBie


Joined: 02-Sep-2010
Posts: 3

Status: Offline
ehhmm...itu di masukkan di form yg mana? di form cetak ato form utama? soalnya mau saya itu otomatis di form cetak, jadi di form utama tidak hasil penjumlahan tersebut
 
 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
RSS