擷取字串的錯誤 |
尚未結案
|
SunOS
一般會員 發表:12 回覆:7 積分:3 註冊:2003-01-07 發送簡訊給我 |
|
william
版主 發表:66 回覆:2535 積分:3048 註冊:2002-07-11 發送簡訊給我 |
引言: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. |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |