Hi, i am just woundering if anyone can help me i am working in VB6.

i am wanting to store a number like pounds in a integer and then lets say the player wishes to buy somthing like a oven that costs £599 and as 1000 starting money this is the code but its not working does anyone know why.

General Decorations

VB Code:
  1. 'Integer that Stores record of the players money
  2. Dim intmoney As Integer

VB Code:
  1. Private Sub Form_Load()
  2.  
  3. 'This sets the players money to 1000 for starting money when the form loads
  4. intmoney = 1000
  5. end sub
VB Code:
  1. Private Sub oven2_Click()
  2. If intmoney >= 599 Then lockOven2.Visible = False
  3. intmoney = -599
  4. Label4.Caption = "You Bought The New Item"
  5.  
  6.  
  7. If intmoney < 599 Then Label4.Caption = "Sorry But You Can Not Afford This Item"
  8. End Sub


by the way lockOven2 is a label that is covering and hiding the second oven gaphic so with that not visible you second oven will be.

sorry if this is a bit of an low level vb question


thanks in advance
pipwilky