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

擷取字串的錯誤

尚未結案
SunOS
一般會員


發表:12
回覆:7
積分:3
註冊:2003-01-07

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-01-15 15:48:57 IP:61.218.xxx.xxx 未訂閱
ShowMessage(RightStr(DateTimeToStr(Now()),7)); ShowMessage(DateTimeToStr(Now())); 比較看看吧 會少一個字耶
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-01-15 16:01:14 IP:147.8.xxx.xxx 未訂閱
引言:ShowMessage(RightStr(DateTimeToStr(Now()),7)); ShowMessage(DateTimeToStr(Now())); 比較看看吧 會少一個字耶
Now() should return the current system datetime and it may differs in running the two lines. BTW, DateTimeToStr will use the format stored in LongDateFormat (??), which should be your locale settings by default. It seems that your locale settings will return in a string longer than 7 characters and hence the 1st line will only show the rightmost 7 characters.
系統時間:2024-05-03 20:23:27
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!