首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

strtodate这也出错,太晕了:报这没有重载的版本,该怎么处理

2012-02-07 
strtodate这也出错,太晕了:报这没有重载的版本DateTimePicker1.DateTime:strtodate(AdoQuery1.Fields[2].

strtodate这也出错,太晕了:报这没有重载的版本
DateTimePicker1.DateTime:=strtodate(AdoQuery1.Fields[2].AsString, 'yyyy-mm-dd ');

[解决办法]
DateTimePicker1.DateTime:=AdoQuery1.fieldbyname( 'SetupDate ').AsDateTime;
[解决办法]
DateTime <> strtodate
[解决办法]
function StrToDate(const S: string): TDateTime;
function StrToDate(const S: string;
const FormatSettings: TFormatSettings): TDateTime;
你看delphi的StrToDate的定义,没有两个参数都是字符串的方法

热点排行