array problem
array problem
array problem
array problem
array problem
array problem array problem array problem array problem array problem array problem array problem array problem
array problem array problem
array problem
Go Back  Xtreme Visual Basic Talk > > > array problem


Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2003, 12:23 PM
sambase's Avatar
sambase sambase is offline
Junior Contributor
 
Join Date: Dec 2003
Posts: 234
Default array problem


i have created an array for some images. i want to make them both invisible.

i can make one of the images invisble by using this...
Code:
Private Sub Form_Click() Image1(0).Visible = False End Sub

but i have 2 objects in the array. So to shorten my code i tried:

Code:
Private Sub Form_Click() Image1(0, 1).Visible = False End Sub

but this don't work.

Can it be done in a way like this rather than the long way?
Reply With Quote
  #2  
Old 12-20-2003, 12:28 PM
Icek Icek is offline
Restricted
 
Join Date: Jun 2003
Location: Warsaw, Poland
Posts: 183
Default

Code:
dim i as integer For i=Image1.LBound to Image1.Ubound Image1(i).Visible=False Next
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standards and Practices loquin Tutors' Corner 10 07-28-2006 12:16 PM
Write 2D array to a file Dolptrmn File I/O and Registry 4 11-08-2003 07:42 PM
Array and String Functions rhawke General 5 07-10-2003 02:33 AM
Problem with session variables array Netrunner Web Programming 2 04-03-2003 05:32 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
array problem
array problem
array problem array problem
array problem
array problem
array problem array problem array problem array problem array problem array problem array problem
array problem
array problem
 
array problem
array problem
 
-->