Results 1 to 5 of 5

Thread: [RESOLVED] Index as Integer

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member LawnNinja's Avatar
    Join Date
    Aug 2006
    Posts
    446

    Resolved [RESOLVED] Index as Integer

    Ok, I have a piece of code that works only is the "mouse over" section but I want the code to occur when you press a command button. Here is the code that I want toi happen when you click a command button.
    Code:
    Text6.Text = Picture4(Index).Left  'corner location
    Text7.Text = Picture4(Index).Top  'end
    
    Label17.Caption = X + Picture4(Index).Left 'For location on bg
    Label21.Caption = Y + Picture4(Index).Top 'end
    I think its because Index is not defined as an interger like it is in the "mouse over" section like so.
    Code:
     (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
    How do you get the code at the top to apply to a command button??? I tired adding the above code to the end of commandbutton press and you get errors.
    Last edited by LawnNinja; Jan 20th, 2007 at 11:28 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width