VFP中如何改变系统时间?用API函数吗?怎么使用? "原来在DOS下还可以用RUN命令直接调用系统命令DATE TIME来实现", 现在也应该可以.用API也应该可以. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 下面是例子:在FORM里加入WSparameters wordvalprivate i, retstrretstr = ""for i = 8 to 0 step -8 retstr = chr(int(wordval/(2^i))) + retstr wordval = mod(wordval, (2^i))nextretu retstrdeclare SHORT SetLocalTime in win32api string SystemTimeSystemTime = thisform.ws(year(updtdate)) + ; thisform.ws(month(updtdate)) + ; thisform.ws(dow(updtdate) - 1) + ; thisform.ws(day(updtdate))+ ; thisform.ws(val(left(updtime, 2))) + ; thisform.ws(val(substr(updtime, 4, 2))) + ; thisform.ws(val(substr(updtime, 7, 2))) + ; thisform.ws(val(right(updtime, 2)))retval = SetLocalTime(SystemTime)完成。updtdate(你的日期),updtime(你的时间) 怎样从sql 2005中把数据库导入到sql 2000? sql2000的select ...into语句生成新表,及分类汇总功能。 变量赋值问题 帮我解释一下分页存储过程 定时删除数据库中的数据 一个简单的连接数据库问题(100分) 求一条多表查询的sql语句 由视图生成临时表排序问题 MS SQL 7.0 :一个奇怪的问题! 简单问题:如何编写返回多部分结果集的存储过程或函数? 有一条语句不知是有什么用??? vfp6中导出txt,怎样去掉字符串两边的双引号?或其它导出方法?
在FORM里加入WS
parameters wordvalprivate i, retstr
retstr = ""
for i = 8 to 0 step -8
retstr = chr(int(wordval/(2^i))) + retstr
wordval = mod(wordval, (2^i))
next
retu retstrdeclare SHORT SetLocalTime in win32api string SystemTimeSystemTime = thisform.ws(year(updtdate)) + ;
thisform.ws(month(updtdate)) + ;
thisform.ws(dow(updtdate) - 1) + ;
thisform.ws(day(updtdate))+ ;
thisform.ws(val(left(updtime, 2))) + ;
thisform.ws(val(substr(updtime, 4, 2))) + ;
thisform.ws(val(substr(updtime, 7, 2))) + ;
thisform.ws(val(right(updtime, 2)))retval = SetLocalTime(SystemTime)完成。updtdate(你的日期),updtime(你的时间)