Fortune Telling Collection - Free divination - Help write a VB dice game
Help write a VB dice game
Define a business object as a Boolean value
Private subcommand 1_Click ()
Label 1 = " "
Irregular
Text 1 = Val(Int(Rnd * 6))
Text2 = Val(Int(Rnd * 6))
A = Val (text 1)+Val (text 2)
label 1 = IIf(a & gt; 6. "More points" and "Less points")
If Label 1 = "There are many points", then
Bo = true
other
Bo = false
If ... it will be over.
Command 1. Enabled = False
Command 2. Enabled = true
End joint
Private subcommand 2_Click ()
Label 1 = " "
Irregular
Text 1 = Val(Int(Rnd * 6))
Text2 = Val(Int(Rnd * 6))
B = Val (text 1)+Val (text 2)
If (b>6 and bo = true) or (b<6 and bo = false), then
Label 1 = "You win!"
other
Label 1 = "You lost!"
If ... it will be over.
Command 1. Enabled = true
Command 2. Enabled = False
End joint
Private Sub-Form _Load ()
Label 1 = " "
Command 1. Enabled = true
Command 2. Enabled = False
End joint
- Previous article:Hunters also play space hunting, winning 78%.
- Next article:Four-character idioms of tortoise and turtle
- Related articles
- Tarot test: Do you need love or freedom?
- Dreaming about the omen of personal clothes being stolen
- Tarot Test: What is the ending of your love?
- What is the rule of1+2+3+4+5 = 3 * 52+3+4+5+6 = 4 * 53+4+5+6+7 = 5 * 5?
- What was the position of priests in ancient Egyptian civilization?
- What are the flowers in October? What is the flower language?
- Reading the introduction of Four-pillar Foresight on the Internet, how to determine the prosperous stage of Four-pillar Foresight Introduction?
- What are the ancient beasts of Warcraft? It is best to take pictures.
- Tik Tok's interesting copy.
- Letsgo Pikachu grass master how to fight?