困惑:intraweb中不让用datetostr函数,也不认提取系统时间的date(30分)

  • 主题发起人 主题发起人 obgnoyuy
  • 开始时间 开始时间
O

obgnoyuy

Unregistered / Unconfirmed
GUEST, unregistred user!
如题,请教各位这是怎么回事??谢谢。
 
procedure TIWForm1.IWButton1Click(Sender: TObject);
begin
webapplication.ShowMessage(datetostr(date));
end;

上面的例子在我这里用得很好
d6+intreweb6.0

可能和你用的delphi版本有关吧你可查看一下帮助看
datetostr和date定义在哪个单元中引用一下即可
 
我的环境是d7+intreweb5.0,请问到哪能下载intreweb6.0,如果要加一个引用单元加纳一个呢,请高手指点。
 
引用单元可以在帮助里查到
选中datetostr按f1

Converts a TDateTime value to a string.

Unit

SysUtils<<<这个地方就是datetostr所在的单元,但是版本不同单元也可能不同,你可以自己找到的

Category

date/time routines

function DateToStr(Date: TDateTime): string;

Description

Use DateToStr to obtain a string representation of a date value that can be used for display purposes. The conversion uses the format specified by the ShortDateFormat global variable.
 
不好意思,还是要请你指点,帮助如下。如何引用?

Converts a TDateTime value to a string.

Unit

SysUtils

Category

datetime routines

Delphi syntax:

function DateToStr(Date: TDateTime): string; overload;

function DateToStr(const DateTime: TDateTime; const FormatSettings: TFormatSettings): string; overload;

C++ syntax:

extern PACKAGE AnsiString __fastcall DateToStr(const System::TDateTime DateTime);
extern PACKAGE AnsiString __fastcall DateToStr(const System::TDateTime DateTime, const TFormatSettings FormatSettings);

Description

Use DateToStr to obtain a string representation of a date value that can be used for display purposes.

The first form of DateToStr is not thread-safe, because it uses localization information contained in global variables. The second form of DateToStr, which is thread-safe, refers to localization information contained in the FormatSettings parameter. Before calling the thread-safe form of DateToStr, you must populate FormatSettings with localization information. To populate FormatSettings with a set of default locale values, call GetLocaleFormatSettings.
 
我下了一个intreweb6.0问题解决,不过还是感谢52free的帮助,30分送上,谢谢。
 
接受答案了.
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
D
回复
0
查看
2K
DelphiTeacher的专栏
D
D
回复
0
查看
2K
DelphiTeacher的专栏
D
后退
顶部