Results 1 to 11 of 11

Thread: Resolved - Cmd Button Array

Threaded View

  1. #1

    Thread Starter
    Fanatic Member holly's Avatar
    Join Date
    Aug 2002
    Location
    Somewhere on earth
    Posts
    721

    Resolved - Cmd Button Array

    Hi
    I do not know much about arrays but I have 4 cmd buttons on my
    form these will do exactly the same except for the printed results
    which will be a little different i.e

    How can I put this into an array but change the printed result
    depending on which button is pressed

    my code
    VB Code:
    1. Private Sub cmdashft_Click()
    2.  
    3.         Select Case Intwndprogress
    4.             Case Is = 10
    5.                 txtinformation.Text = "J"
    6.                 PicresultsShft.Print "Packers_Shift"; vbCrLf & CStr(txtinformation)
    7.                     cmdashft.Caption = ""
    8.                     cmdbshft.Caption = ""
    9.                     cmdcshft.Caption = ""
    10.                     cmddshft.Caption = ""
    11.     txtinformation.SetFocus
    12.     txtinformation.maxlength = 11
    13.     txtinformation = ""
    14.              Call wndprogres
    15.                
    16.        End Select
    17.       Lbltext.Caption = "Please enter code"
    18.             validate_product_code
    19.  
    20. End Sub

    Thanks
    Last edited by holly; May 6th, 2003 at 07:04 AM.
    ** HOLLY **

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