代码输出结果
请问下面的代码中,str会输出什么样的结果?
lenfilename=len(CommonDialog1.filename)
for i=1 to lenfilename
temp=right(commondialog1.file,i)
if mid(temp,1,i)="\" then
str=right(temp,len(temp)-1)
exit for
next
请问下面的代码中,str会输出什么样的结果?
lenfilename=len(CommonDialog1.filename)
for i=1 to lenfilename
temp=right(commondialog1.file,i)
if mid(temp,1,i)="\" then
str=right(temp,len(temp)-1)
exit for
next
2007-02-03 12:50

2007-02-04 09:49
2007-02-04 09:50
2007-02-04 09:53