Menampilkan Nominal Ribuan Di Lazarus

Menampilkan Nominal Ribuan Di Lazarus
Buatlah Edit satu dan isikan nilai angka 70000

Tambahkan Code dibawah ini pada Event OnChange Milik Komponen Edit

var
Rp : string;
Rph : Currency;
begin
Rp := Edit1.Text;
Rp := StringReplace(Rp,’,’,”,[rfReplaceAll,rfIgnoreCase]);
Rp := StringReplace(Rp,’.’,”,[rfReplaceAll,rfIgnoreCase]);
Rph := StrToCurrDef(Rp,0);
edit1.Text := FormatCurr(‘#,###’,Rph);
edit1.SelStart := length(edit1.text);
end;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s