誰可告訴我資料庫字段到DateTimePicker1元件顯示? |
答題得分者是:pceyes
|
BIG-ROM
初階會員 發表:94 回覆:91 積分:37 註冊:2005-04-16 發送簡訊給我 |
|
yubad2000
中階會員 發表:0 回覆:44 積分:78 註冊:2007-09-30 發送簡訊給我 |
1. Convert the date value in the table into "string". ( skip this step if it already is a string)
You can try using str1 = table1["fieldname"].string to obtain this string. 2. Convert this string into Delphi's TDateTime datatype by calling mydatetime = StrToDateTime(str1) 3. Set DataTimePicker.date with this converted datetime value. ===================引 用 BIG-ROM 文 章=================== 誰可告訴我資料庫字段到DateTimePicker1元件顯示? Table 內有 2007-01-25 如何輸出到DateTimePicker1 ?
------
===波士頓夜未眠=== What a wonderful world!! Jazz up the world with jazz!! ================== When I am not programming... you can find me here: http://www.holy-war.de/EN/World3/bin/?advertiser=63190 |
pceyes
尊榮會員 發表:70 回覆:657 積分:1140 註冊:2003-03-13 發送簡訊給我 |
|
BIG-ROM
初階會員 發表:94 回覆:91 積分:37 註冊:2005-04-16 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |