Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Command Button
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







Report this thread to moderator Post Follow-up to this message
Old Post
Ed Wyche
05-28-05 08:55 AM


Re: Command Button
I solved my problem.

"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
>
>
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Ed Wyche
05-28-05 08:55 AM


Re: Command Button
"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 to

i = index

J
>"Ed Wyche" <whocares> wrote in message
>news:uAUS%23OxYFHA.2128@TK2MSFTNGP14.phx.gbl... 
>


Jan Hyde (VB MVP)

--
When some people go on a diet they have a gut reaction. (Mike Bull)

[Abolish the TV Licence - http://www.tvlicensing.biz/]


Report this thread to moderator Post Follow-up to this message
Old Post
Jan Hyde
05-31-05 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Basic archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:36 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.