Connecting Tech Pros Worldwide Help | Site Map

using an array of shapes parameter in vb6

  #1  
Old January 9th, 2008, 07:25 PM
Geoff
Guest
 
Posts: n/a
I am using VB6 and have set up a procedure with the parameter LCDLine()
which is an array of shapes. Well something is adrift because it will not
compile on line ....LcdLine(I).Visible = False

Any help will be greatly received
Geoff

Private Sub LCD(ByVal No As Integer, ByRef LcdLine() As Shape)
Dim I As Integer

For I = 1 To 7
LcdLine(I).Visible = False
Next I

Select Case No
Case 0
LcdLine(1).Visible = True
LcdLine(2).Visible = True
LcdLine(3).Visible = True
LcdLine(4).Visible = True
LcdLine(5).Visible = True
LcdLine(6).Visible = True
Case 1
LcdLine(2).Visible = True
LcdLine(3).Visible = True

etc..


  #2  
Old January 10th, 2008, 09:05 AM
Dean Earley
Guest
 
Posts: n/a

re: using an array of shapes parameter in vb6


Geoff wrote:
Quote:
I am using VB6 and have set up a procedure with the parameter LCDLine()
which is an array of shapes. Well something is adrift because it will not
compile on line ....LcdLine(I).Visible = False
Why not?

--
Dean Earley (dean.earley@icode.co.uk)
i-Catcher Development Team

iCode Systems
Closed Thread