473,385 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

fast check

hi all

i'm usung this command to check 16 checkboxes

for inti = 1 to 16
check1(inti) = vbchecked
next inti

but with this ommand it wil loop 16 times trough the code

is there a way it will set the checkboxes at once

thanks maarten
Jul 17 '05 #1
5 1617
For i = 1 To 16
Check1(i).Value = 1
Next

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 17 '05 #2
What improvement does this introduce, and how does it address the OP's
question?

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"TecCRC" <te****@doubleve.com> wrote in message
news:Xn*******************************@38.119.100. 122...
: For i = 1 To 16
: Check1(i).Value = 1
: Next
:
: Posted Via Usenet.com Premium Usenet Newsgroup Services
: ----------------------------------------------------------
: ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
: ----------------------------------------------------------
: http://www.usenet.com

Jul 17 '05 #3
No, one way or another you have to access each control individually. You
can use the loop, where the controls are in a sequential control array as
you have done, or use the For Each method, adding restrictions as required
to have the code address the controls you want, eg..

for each ctl in controls
if typeof ctl is CheckBox then
ctl.checked = vbchecked
end if
next

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Maarten" <gu******@hotmail.com> wrote in message
news:41***********************@news.skynet.be...
: hi all
:
: i'm usung this command to check 16 checkboxes
:
: for inti = 1 to 16
: check1(inti) = vbchecked
: next inti
:
: but with this ommand it wil loop 16 times trough the code
:
: is there a way it will set the checkboxes at once
:
: thanks maarten
:
:

Jul 17 '05 #4
> for each ctl in controls
if typeof ctl is CheckBox then
ctl.checked = vbchecked
ctl.Value = vbChecked
end if
next


Rick - MVP
Jul 17 '05 #5
yea, I was thinking option buttons. Thanks.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"Rick Rothstein" <ri************@NOSPAMcomcast.net> wrote in message
news:O_********************@comcast.com...
: > for each ctl in controls
: > if typeof ctl is CheckBox then
: > ctl.checked = vbchecked
:
: ctl.Value = vbChecked
:
: > end if
: > next
:
: Rick - MVP

Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Uwe Mayer | last post by:
Hi, Using PyQt I got a QListView with about 800 entries now (but its intended to be scalable up to about 3000). The first column contains numerical data. Now Qt does the sorting all by its self...
8
by: Neil | last post by:
I have a very puzzling situation with a database. It's an Access 2000 mdb with a SQL 7 back end, with forms bound using ODBC linked tables. At our remote location (accessed via a T1 line) the time...
20
by: GS | last post by:
The stdint.h header definition mentions five integer categories, 1) exact width, eg., int32_t 2) at least as wide as, eg., int_least32_t 3) as fast as possible but at least as wide as, eg.,...
13
by: William Stacey | last post by:
FYI. /// <summary> /// Author: William Stacey /// Fast and simple way to implement a singleton pattern without resorting /// to nested classes or other static vodo. Can also be easily converted...
10
by: javuchi | last post by:
I just want to share some code with you, and have some comments and improvements if you want. This header file allocates and add and delete items of any kind of data from a very fast array: ...
1
by: www.web20developers.com | last post by:
http://www.web20developers.com http://www.web20developers.com/index.php?option=com_content&task=view... Ajallerix : AJAX, simple, fast Web image gallery demo ; at Novell AJAX -...
95
by: hstagni | last post by:
Where can I find a library to created text-based windows applications? Im looking for a library that can make windows and buttons inside console.. Many old apps were make like this, i guess ...
19
by: Juha Nieminen | last post by:
If I'm not completely mistaken, the only reason why std::list::size() may be (and usually is) a linear-time operation is because they want std::list::splice() to be a constant-time operation, and...
0
by: Vinod Sadanandan | last post by:
Fast-Start Failover An Overview In Dataguard Environment ============================================================================= This article describes the automatic fast start failover...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.