2015年3月27日 星期五

Delphi的引用問題

前一陣子有朋友問到,我給的IncMonth(Date:String;IncValue:integer):String;這個函數和原廠提供的function IncMonth(const DateTime: TDateTime; NumberOfMonths: Integer = 1): TDateTime;相衝突。不知道要如何解決。
其實解決這問題很簡單,要使用Delphi的函數,只要加上引用的來源 SysUtils. IncMonth()就行了。當Delphi的來源取得順序不如我們想的,就加上來源,就可以解決了。

沒有留言:

張貼留言