- Joined
- Jul 29, 2007
- Messages
- 392 (0.06/day)
- Location
- Portugal
System Name | Lil'Lighty |
---|---|
Processor | Intel Core i3 530 @ Stock |
Motherboard | Asus P7P55D |
Cooling | Artic Cooling Freezer Pro Rev.2 |
Memory | Gskill Ripjaw 1600MHz 9-9-9-24 8GB |
Video Card(s) | MSI GeForce GTX650 OC 1GB |
Storage | WD Blue 500GB AAKS |
Display(s) | ASUS 20' |
Case | Aerocool Aeroengine II // Two 120mm Blue Fans |
Audio Device(s) | Creative SoundBlaster LE // Logitech X-230 |
Power Supply | Corsair VX450W |
Software | Windows 8.1 Pro x64 |
Hey guys, could you help me with a problem?
I'm trying to make a VB program that generates lottery numbers. The thing is, it has a PIN textbox for when the right PIN is introduced, the button for randomize numbers becomes active.
But when I delete the PIN, the program gives me Error 13 Type Mismatch:
I think that if you delete the PIN, the program can't compare because the textbox has Nil value.
The green text is where VB says where is the error. By the way, the DataFormat of the textbox is in Number.
Someone can help me out?? I started to learn VB by my own iniciative.
I'm trying to make a VB program that generates lottery numbers. The thing is, it has a PIN textbox for when the right PIN is introduced, the button for randomize numbers becomes active.
But when I delete the PIN, the program gives me Error 13 Type Mismatch:
I think that if you delete the PIN, the program can't compare because the textbox has Nil value.
Code:
Private Sub PIN_Change()
[COLOR="Lime"]If PIN = 5454 Then [/COLOR]Command1.Visible = True _
Else: Command1.Visible = False
Label1 = Nil
Label2 = Nil
Label3 = Nil
Label4 = Nil
Label5 = Nil
Label6 = Nil
Label7 = Nil
End Sub
The green text is where VB says where is the error. By the way, the DataFormat of the textbox is in Number.
Someone can help me out?? I started to learn VB by my own iniciative.
Last edited: