怎么为函数的时间参数赋值?
我有这么一个函数float theTypeNameKuCun_includeDate(AnsiString theTypeName,TDateTime theDate);
怎么才能为时间变量直接赋值上去,我之前是首先定义1个时间变量,然后为时间变量赋值,之后在填写到函数的时间变量上面,但我想直接赋值一个固定值上去,应该怎么处理,如果我这样赋值theTypeNameKuCun_includeDate(theTypeName,“2007-1-2”)就会出错,请问怎样才能直接赋值一个固定的数值要上去?
[解决办法]
theTypeNameKuCun_includeDate(theTypeName,StrToDateTime( "2007-1-1 "));