12443.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 27 行

HTML
27
字号
<html>
  <head>
    <title>Re: 气死我了,快拉兄弟一把!</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 气死我了,快拉兄弟一把!</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:jwh@ms1.hinet.net">纪文和</a> on April 28, 1999 at 14:10:42:<p>
In Reply to: <a href="12429.html">气死我了,快拉兄弟一把!</a> posted by 八戒 on April 28, 1999 at 01:33:41:<p>
您的程式逻辑有点怪怪的!<br>-------------------------------------------------------------<br>For j = 0 To i 'compare iLuckyNumber with numbers on previous labels<br>If iLuckyNumber = Val(Label1(j).Caption) Then 'if new number is the same as previous, reset i=i-1 to do it again<br>i = i - 1<br>End If<br>Next j<br>上面这段,当您发现数字重复时, 实际上并没有重新产生乱数!<br>Label1(i).Caption = iLuckyNumber<br>-------------------------------------------------------------<br>您可以修修程式, 否则我提个想法参考看看!<p>1.在 Form 上放一个 List1, Form_load 时用 additem 在 List1 中加入1-49 的数字,<br>2.Command1_Click 时, 再从 list1 中取出6个数, 取出一个, removeitem  一个<p>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 12443-->
<!--top: 12452--><li><a href="12452.html">Re: 气死我了,快拉兄弟一把!</a> <b>八戒</b> <i>22:16:41 4/28/99</i>
(<!--responses: 12452-->0)
<ul><!--insert: 12452-->
</ul><!--end: 12452-->
</ul><!--end: 12443-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?