Posts: 274
Threads: 35
Joined: Jun 2014
Reputation:
  
FCoin: 36.53ƒc
ini biar bisa jadi itungannya Giga (GB) gimana yaa..??
saya bikin ini tiap sudah sampe 1,023.83 MB pasti ndak mau jalan lagi berhenti disitu itungan total downloadnya gk mau naek jadi 1 GB
tolong bantuannya....
SS
CODING
[Only registered and activated users can see links Click here to register] | [Only registered and activated users can see links Click here to register]
Sombong Dikit Gak Papa.... Penting Masih Selalu Lancar Aman Jaya Sentosa Sejahtera Suka Menabung :wah:
Posts: 898
Threads: 23
Joined: Mar 2014
Reputation:
 
FCoin: 3,741.99ƒc
newbie numpang jawab 
kayanya yang dimerah"in sama aj artinya gan
Quote:if TotDown < OneGB then
TotalReceived.Text := FormatFloat('#,##0.00 MB', TotDown / OneMB)
else
if OneGB > TotDown then
TotalReceived.Text := FormatFloat('#,##0.000 GB', TotDown / OneGB)
end;
coba yang bawah diganti
Quote:if OneGB < TotDown then
atau langsung
Quote:else
TotalReceived.Text := FormatFloat('#,##0.000 GB', TotDown / OneGB)
end;
ane jg g ngerti bahasa yang satu ini aslinya 
Posts: 323
Threads: 39
Joined: Sep 2015
Reputation:
FCoin: 44.37ƒc
(10-07-2015, 07:16 PM)zeph Wrote: ini biar bisa jadi itungannya Giga (GB) gimana yaa..??
saya bikin ini tiap sudah sampe 1,023.83 MB pasti ndak mau jalan lagi berhenti disitu itungan total downloadnya gk mau naek jadi 1 GB
tolong bantuannya....
SS
CODING
haha hanya mastah yang bisa jawab 
AA Tamvan yang suka banget sama ANIME :siaga:
Posts: 274
Threads: 35
Joined: Jun 2014
Reputation:
  
FCoin: 36.53ƒc
(10-07-2015, 08:13 PM)aviator Wrote: newbie numpang jawab 
kayanya yang dimerah"in sama aj artinya gan
Quote:if TotDown < OneGB then
TotalReceived.Text := FormatFloat('#,##0.00 MB', TotDown / OneMB)
else
if OneGB > TotDown then
TotalReceived.Text := FormatFloat('#,##0.000 GB', TotDown / OneGB)
end;
coba yang bawah diganti
Quote:if OneGB < TotDown then
atau langsung
Quote:else
TotalReceived.Text := FormatFloat('#,##0.000 GB', TotDown / OneGB)
end;
ane jg g ngerti bahasa yang satu ini aslinya 
kalau saya tulis TotalReceived.Text := FormatFloat('#,##0.000 GB', TotDown / OneGB) nanti too large mas itungannya di keterangan delphi nya mas makanya saya tulis if TotDown < OneGB then[/color]
TotalReceived.Text := FormatFloat('#,##0.00 MB', TotDown / OneMB) begitu mas....
[Only registered and activated users can see links Click here to register] | [Only registered and activated users can see links Click here to register]
Sombong Dikit Gak Papa.... Penting Masih Selalu Lancar Aman Jaya Sentosa Sejahtera Suka Menabung :wah:
Posts: 898
Threads: 23
Joined: Mar 2014
Reputation:
 
FCoin: 3,741.99ƒc
(10-08-2015, 12:35 AM)zeph Wrote: kalau saya tulis TotalReceived.Text := FormatFloat('#,##0.000 GB', TotDown / OneGB) nanti too large mas itungannya di keterangan delphi nya mas makanya saya tulis if TotDown < OneGB then[/color]
TotalReceived.Text := FormatFloat('#,##0.00 MB', TotDown / OneMB) begitu mas....
ya intinya 2 if terakhir itu sama
TotDown < OneGB itu sama dengan OneGB > TotDown
makanya kalo TotDown > OneGB langsung ke end dan g diproses 
kalo masalah too large mungkin variablenya yang g sanggup nampung diatas 1GB (2^30), nunggu master delphi mampir dimari aj gan 
Posts: 274
Threads: 35
Joined: Jun 2014
Reputation:
  
FCoin: 36.53ƒc
(10-08-2015, 07:20 PM)aviator Wrote: ya intinya 2 if terakhir itu sama
TotDown < OneGB itu sama dengan OneGB > TotDown
makanya kalo TotDown > OneGB langsung ke end dan g diproses 
kalo masalah too large mungkin variablenya yang g sanggup nampung diatas 1GB (2^30), nunggu master delphi mampir dimari aj gan 
kira2 yang di MMD nya om Sueb itu gimana yaa mas coding delphi nya bisa up 1GB itungan di total download di MMD nya :(
blum ada pencerahan cari sana sini
[Only registered and activated users can see links Click here to register] | [Only registered and activated users can see links Click here to register]
Sombong Dikit Gak Papa.... Penting Masih Selalu Lancar Aman Jaya Sentosa Sejahtera Suka Menabung :wah:
|