|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Command ButtonRight in the cmdTest there is the variable "I". I would like to have "i"
as the index value of the control array but it keep giving me a -1. I would like to have it if I click on the first command button it will be i=0 and so on. Private Sub cmdTest_Click(Index As Integer) i = cmdTest(Index) <----------Right here frmForm2.Show End Sub I solved my problem.
Show quoteHide quote "Ed Wyche" <whocares> wrote in message news:uAUS%23OxYFHA.2128@TK2MSFTNGP14.phx.gbl... > Right in the cmdTest there is the variable "I". I would like to have > "i" as the index value of the control array but it keep giving me a -1. I > would like to have it if I click on the first command button it will be > i=0 and so on. > > > Private Sub cmdTest_Click(Index As Integer) > > i = cmdTest(Index) <----------Right here > > frmForm2.Show > > End Sub > > > > > > "Ed Wyche" <whocares>'s wild thoughts were released on Fri, 27 May 2005 19:31:43 -0400 bearing the following fruit:>I solved my problem. I assume by changing the code toi = index J Show quoteHide quote >"Ed Wyche" <whocares> wrote in message Jan Hyde (VB MVP)>news:uAUS%23OxYFHA.2128@TK2MSFTNGP14.phx.gbl... >> Right in the cmdTest there is the variable "I". I would like to have >> "i" as the index value of the control array but it keep giving me a -1. I >> would like to have it if I click on the first command button it will be >> i=0 and so on. >> >> >> Private Sub cmdTest_Click(Index As Integer) >> >> i = cmdTest(Index) <----------Right here >> >> frmForm2.Show >> >> End Sub >> >> >> >> >> >> > -- When some people go on a diet they have a gut reaction. (Mike Bull) [Abolish the TV Licence - http://www.tvlicensing.biz/]
simple Excel question
Failed to load control...Your version of ocx may be outdated.. Folder loading problem. Support Classic VB Current User Package/Deployment Wizard how to pass over events in stacked objects? Set Scroll position in a list box Can I develop VB6 App for windows CE? 3433 Invalid setting in Excel key of the Engines section of the Windows Registry |
|||||||||||||||||||||||