473,513 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

looping thru table properties will I have to loop twice?

I was going to loop thru the tables and change some properties.
10 <<<<<< prp.value --prp.name = Type
False <<<<prp.value --prp.name = allow zero length
10 <<<<<< prp.value --prp.name = Type
True <<<<prp.value --prp.name = allow zero length
10 <<<<<< prp.value --prp.name = Type
True <<<<prp.value --prp.name = allow zero length
10 <<<<<< prp.value --prp.name = Type
True <<<<prp.value --prp.name = allow zero length
4 <<<<<< prp.value --prp.name = Type
False <<<<prp.value --prp.name = allow zero length

so if the type is 10 --- text field
I want to change allow zero length to true on all of them
the type is 4 --number field has me messed up
it has the allow zero lenght and its set to false but you can't set it
to true on a number field.

they type is read before the allow zero lenght
so do I have to loop thru the properties twice?
check for 10 and then loop thru again and if its a 10 set allow zero
length to true?

thanks this should have been easier than I made it (I think)

jerry

Nov 13 '05 #1
2 1765
yep resume next is a life saver lol

thnks for the tip

jerry
On Wed, 28 Jul 2004 17:36:52 GMT, Chuck Grimsby
<c.*******@worldnet.att.net.invalid> wrote:

You can look at a property without setting it, you know. You only
need to set it when you're going to have to *do* something to it.
This means that you can look at a different property then the one
you've set (or are about to set).

Another way to deal with this would be to trap the error, ignore it,
and move on.

On Wed, 28 Jul 2004 16:23:45 GMT, sparks <sp****@here.com> wrote:
I was going to loop thru the tables and change some properties.

<snip>
so if the type is 10 --- text field
I want to change allow zero length to true on all of them
the type is 4 --number field has me messed up
it has the allow zero lenght and its set to false but you can't set it
to true on a number field.
they type is read before the allow zero lenght
so do I have to loop thru the properties twice?
check for 10 and then loop thru again and if its a 10 set allow zero
length to true?
thanks this should have been easier than I made it (I think)


Nov 13 '05 #2
> Another way to deal with this would be to trap the error, ignore it,

In this particular situation it is likely to give you a memory leak
and slow recovery. Still, sometimes that is all you can do, and you
get the memory back when you release the database object.

(david)
"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message
news:dn********************************@4ax.com...

You can look at a property without setting it, you know. You only
need to set it when you're going to have to *do* something to it.
This means that you can look at a different property then the one
you've set (or are about to set).

Another way to deal with this would be to trap the error, ignore it,
and move on.

On Wed, 28 Jul 2004 16:23:45 GMT, sparks <sp****@here.com> wrote:
I was going to loop thru the tables and change some properties.

<snip>
so if the type is 10 --- text field
I want to change allow zero length to true on all of them
the type is 4 --number field has me messed up
it has the allow zero lenght and its set to false but you can't set it
to true on a number field.
they type is read before the allow zero lenght
so do I have to loop thru the properties twice?
check for 10 and then loop thru again and if its a 10 set allow zero
length to true?
thanks this should have been easier than I made it (I think)

--
Ability Is A Good Thing But Stability Is Even Better.

Nov 13 '05 #3

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

Similar topics

2
3978
by: ensnare | last post by:
Hi all, I'm using a database session handler and am looking to loop through data residing in the sessions table to make a 'Users online' array. I've found that using urldecode on the data...
3
2858
by: WC Justice | last post by:
I need to build an UPDATE statement that copies the values of roughly 40 fields from a table that stores standard or default values into a table of specific contracts. There are 8 or so fields in...
5
1782
by: Bruce Lawrence | last post by:
I'm running Access 97 and my modules are looping if someone puts an invalid value in. The setup: 3 macros - get_clock_num, verify_clocknum, append_to_history 3 functions. each in their own...
3
1605
by: Lars Netzel | last post by:
I have a Dataset with one table in it. If I need to loop thru that table I know of two ways that I would choose.. 1. Do a "For Each DataRow in Datatable" 2. You create an IEnumerator fron the...
2
6310
by: randy1200 | last post by:
My hope is that somebody has a thought on this, or can point to toward an article that's useful. I have the following: DataSet ds = new DataSet(); ds.ReadXml("MyData.xml"); Each MainTable...
2
16040
by: pob | last post by:
Whats the difference between using a control or a listbox when looping thru a listbox. In example 1 it dims a listbox and an example 2 it dims a control. Please explain. Thanks in advance ...
3
2140
by: chalrav | last post by:
Reading through multiple records, with Loop capability -------------------------------------------------------------------------------- Hi, I have three tables as below: Table: Demand...
1
16624
by: pds79 | last post by:
Hi everyone, I'm a newbie to the forum. I have an issue and was hoping to get some assistance/ideas: Im trying to read a XML file into two record sets. I can acheive looping through the...
6
2718
by: mahowe | last post by:
Hi, I have had this problem for a while and have not been able solve it. What im looking at doing is looping thru my patient table and trying to organise the patients in to there admission...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.