FOR ... 2005年的下一个循环 [英] FOR...NEXT LOOP in VB 2005

查看:70
本文介绍了FOR ... 2005年的下一个循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

1.我已经在一个名为Enjoy Button的形式(矩形框)中创建了一个移动对象(它是一个按钮)。

2.一个名为Start Timer的特定按钮。被按下...当开始计时器时按下按钮,

3." xTimer"事件被调用,按钮在矩形框中移动并弹回墙壁... =动画


4.但是,我需要在<...中写一个For..Next循环br />
5.For Next Button =一个名为next的按钮

6.还在循环中放置一个计数器来控制动画时间..

7.循环应该在某个时间停止那个对象也应该停在那个时候,在一个新的位置



这是我到目前为止所用的


1.I have created a moving object (which is a button) in a form (rectangle box) called "Enjoy Button" and it moves when
2. a specific button named "Start Timer" is pressed...When the "Start Timer" button is pressed, the
3. "xTimer" event is called and the button moves in a rectangle box and bounces of the walls...=animation

4. However, i need to write a For..Next Loop in the
5."For Next " Button= a button named for next
6.and also put a counter in the loop to control the animation time..
7.The loop should stop at a certain time, and the object too should stop at that time,at a new location


this is what i have so far


展开 | 选择 | Wrap | 行号

推荐答案

我对你如何描述你的目标以及达到目标的行动计划表示赞赏。不是每个人都这样做。

但是......你对这里的志愿者有什么问题?


顺便说一句......第6行可能是会给你带来麻烦。 .Enabled通常是一个布尔值(true / false),但你反复设置它等于5 * 1.
My compliments on how well you have described what your goals are and your intended plan of action to get there. Not everyone does that as well.
But... What is your question for the volunteers here?

By the way... Line 6 is probably going to give you problems. .Enabled is generally a boolean (true/false) but you are repeatedly setting it equal to 5*1.


问题

如何写下一个for next循环结构有一个控制时间的计数器?

如果那是有道理的
Question
How do i write a for next loop structure that has a counter that controls the time?
If that makes sense


啊......要控制时间......这不是很美妙吗?我再也不用担心截止日期了。 < laugh>


首先让我们来决定你正在谈论的两件事中哪一件是重要的:你想让它在柜台上工作吗? I>;动画将以(移动次数)发生...或者您是否希望动画以给定的经过时间进行 (30秒)?
Ah... To control time... Wouldn''t that just be wonderful? I would never have to worry about a deadline again. <laugh>

First lets decide which of the two things you''re talking about is the important one: Do you want this to work based on a counter; where the animation will take place for a set number of times (number of moves)... or do you want the animation to take place for a given amount of elapsed time (30 seconds)?


这篇关于FOR ... 2005年的下一个循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆