为什么加入变量后划不出垂直线?
本帖最后由 itpingtai 于 2016-8-28 10:48 编辑ObjectCreate("abcd",OBJ_VLINE,0,"D'"+StringSubstr(TimeToStr(TimeCurrent()),0,10)+ " 00:00'",0);
为什么加入变量后划不出垂直线?
你的时间 居然是字符型 的
加个D是什么意思
"D'"+StringSubstr(TimeToStr(TimeCurrent()),0,10)+ " 00:00'"="D'2016.08.28 00:00"
itpingtai 发表于 2016-8-28 12:57
"D'"+StringSubstr(TimeToStr(TimeCurrent()),0,10)+ " 00:00'"="D'2016.08.28 00:00"
要用这个结果 你还要再把字符的转成日期的
或者 iTime(NULL,1440,0)
如果时间不是0点呢?怎么写呀……
"D'"+StringSubstr(TimeToStr(TimeCurrent()),0,10)+ " 15:15'"="D'2016.08.28 15:15" 唉,又没人指点,还好,自己搞好了……
页:
[1]