简单问题-分多多!!谢谢哪位大哥指点小弟一下

superTY 2003-02-18 10:39:09
谢谢哪位大哥指点小弟一下:
1,if key = '回车键' then
这里的《'回车键'》该用什么呀?
2,怎么获得当前的日期和时间,然后再转换成string型?
3,还有数据库的记录移动问题?怎么移动记录?
谢谢哪位告知一二!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...全文
28 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
qiume 2003-02-18
  • 打赏
  • 举报
回复
1,#13
2,date(),now(),datatimetoStr()
3,skip n
renzhm 2003-02-18
  • 打赏
  • 举报
回复
1:OnkeyDown: if key=13 then //或者key=VK_RETURN
OnKeyPress:if key=#13 then

2:str:=DateToStr(Date)
str:=DateToStr(Now)
Str:=FormatDateTime('yyyy-mm-dd',date);
3:first,next,prior,last,moveby(i:integer);
netwolfds 2003-02-18
  • 打赏
  • 举报
回复
1.回车键的ascii码是13,至于用什么得看你的key的定义了。
2。now返回就是当前的日期和时间,datetimetostr,formatdatetime等函数可以将其转换为string;
3.用next,prior可以向前,向后移动记录

2,497

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 数据库相关
社区管理员
  • 数据库相关社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧