全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1118
推到 Plurk!
推到 Facebook!

How can I make ADO table field display currency?

尚未結案
Vashee
初階會員


發表:38
回覆:87
積分:25
註冊:2003-03-31

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-04-01 07:21:20 IP:217.36.xxx.xxx 未訂閱
I use ADO components with access. In access, I have set one field as currency (UK Sterlings), but in delphi dbgrid, it only display numbers with the dollar sign. How can I adjust that? Thanks for advance
Justmade
版主


發表:94
回覆:1934
積分:2030
註冊:2003-03-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-04-01 08:22:35 IP:218.16.xxx.xxx 未訂閱
Its default depends on your regional setting. If your system are setting currency display as displaying a dollar sign, it will show up in Delphi currency field by default. You can either change your regional default setting or override the system default. To override the system regional default, you can just issue your own displayformat of the TCurrentcy Field. For example, you can enter 'GB£ #.00' into the displayformat of your field and then your currentcy field will start with GB£
Vashee
初階會員


發表:38
回覆:87
積分:25
註冊:2003-03-31

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-04-02 23:01:56 IP:217.36.xxx.xxx 未訂閱
Where is displayformat? where show I type this in exactly? thnx
Justmade
版主


發表:94
回覆:1934
積分:2030
註冊:2003-03-12

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-04-02 23:11:57 IP:218.16.xxx.xxx 未訂閱
1. double click the ADOTable / ADOQuery / ADODataSet 2. in the field editor, right click, select add all field 3. click on the currency field 4. scan the properties editor for the display format property
系統時間:2024-04-27 18:03:36
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!