今天让做一个左右往复移动的标签文本的表单。
那个大哥会做帮下忙!!
我就会写一直往左的
if thisform.label1.left<thisform.width
thisform.label1.left=thisform.label1.left+4
else
thisform.label1.left=_thisform.label1.width
endif
那个能帮忙写个往复运动的啊???
今天让做一个左右往复移动的标签文本的表单。
那个大哥会做帮下忙!!
我就会写一直往左的
if thisform.label1.left<thisform.width
thisform.label1.left=thisform.label1.left+4
else
thisform.label1.left=_thisform.label1.width
endif
那个能帮忙写个往复运动的啊???
2006-06-19 15:47
2006-06-19 16:53
if thisform.leftmove=.f. &&&添加表单属性leftmove=.f.
if thisform.label1.left<thisform.width
thisform.label1.left=thisform.label1.left+10
else
thisform.label1.left=thisform.width
thisform.leftmove=.t.
endif
endif
if thisform.leftmove=.t.
if thisform.label1.left+thisform.label1.width<0
thisform.label1.left=0-thisform.label1.width
thisform.leftmove=.f.
else
thisform.label1.left=thisform.label1.left-10
endif
endif

2006-06-19 17:15
楼上的朋友很感谢你,但好像还是不对。
我像要的只是计时器timer的事件。
没你写的那复杂吧!!!!
呵呵!!!不过还是很感谢你的热心帮忙的!!!!
2006-06-19 18:10
2006-06-19 19:33
2006-06-19 20:58

2006-06-19 21:28

2006-06-19 22:11
2006-06-19 23:18
呵!!楼上的朋友你也很厉害的啊!!就是我用的VF是8.0版的识别不了leftmove
还有啊!!我还想再问你们一个SQL语句的题目。
题目:将职称为“教授”的教师新工资一项设置为原工资的120%,其他教师的新工资与原工资相等。
(用到的表为“教师”,表中有4项“姓名”,“职称”,“原工资”,“新工资”新工资中没有输入数据。要用SQL语句来编写!)
真是麻烦你们了!!!
2006-06-20 00:20