|
-
Aug 13th, 2002, 08:36 PM
#1
Thread Starter
Lively Member
command button control array?
Lets say I have a form, "frmA" with several command buttons in a control array. when a button is pressed, another form is loaded. is there any way to know which button from frmA was pressed to get to frmB, aside from creating a variable in frmA and accessing it in frmB?
-
Aug 13th, 2002, 10:19 PM
#2
Fanatic Member
have a public varible in frmB and before u load frmB assign the button index to it...
hope i got it right... did i
-
Aug 13th, 2002, 10:20 PM
#3
The picture isn't missing
Private sub Command1_Click(Index as Integer)
frmB.Show
frmB.Tag = Index
End sub
then frmB.Tag would contain the index of the button clicked.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
-
Aug 13th, 2002, 10:31 PM
#4
Fanatic Member
i always do this...
declare unwanted varibles...
follow BuggyProgrammer suggestion
-
Aug 13th, 2002, 11:41 PM
#5
Thread Starter
Lively Member
I had been doing the variable way...but I like the tag idea much better, thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|