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

Rp : string;
Rph : Currency;
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);

Leave a Reply

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

You are commenting using your 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