473,395 Members | 1,931 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,395 software developers and data experts.

Get Property also runs Set?!

While line by line debugging some code I noticed that whenever I run through
Property Set it also subsequently calls Property Set with the having been
Gotten data? Can anyone explain.
A

Mar 7 '08 #1
8 1000
AAAAAARRRGGGHHHH! See correction below:
"Alan Gillott" <ar*********@gmail.comwrote in message news:F3**********************************@microsof t.com...
While line by line debugging some code I noticed that whenever I run through
Property GET it also subsequently calls Property Set with the having been
Gotten data? Can anyone explain.
A
Mar 7 '08 #2
"Alan Gillott" <ar*********@gmail.comschrieb:
While line by line debugging some code I noticed that whenever I run
through Property Set it also subsequently calls Property Set with the
having been Gotten data? Can anyone explain.
Post your implementation of the property.

Maybe you are recursively calling the 'Set' accessor of the property?

\\\
Public Property Foo() As Object
Set(ByVal Value As Object)
Me.Foo = Vaue
End Set
...
End Property
///

This won't work. Use the code below instead:

\\\
Private m_Foo As Object

Public Property Foo() As Object
Set(ByVal Value As Object)
m_Foo = Vaue
End Set
...
End Property
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Mar 7 '08 #3
On Mar 7, 11:42*pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.atwrote:
"Alan Gillott" <argillot...@gmail.comschrieb:
While line by line debugging some code I noticed that whenever I run
through Property Set it also subsequently calls Property Set with the
having been Gotten data? Can anyone explain.

Post your implementation of the property.

Maybe you are recursively calling the 'Set' accessor of the property?

\\\
Public Property Foo() As Object
* * Set(ByVal Value As Object)
* * * * Me.Foo = Vaue
* * End Set
* * ...
End Property
///

This won't work. *Use the code below instead:

\\\
Private m_Foo As Object

Public Property Foo() As Object
* * Set(ByVal Value As Object)
* * * * m_Foo = Vaue
* * End Set
* * ...
End Property
///

--
*M S * Herfried K. Wagner
M V P *<URL:http://dotnet.mvps.org/>
*V B * <URL:http://dotnet.mvps.org/dotnet/faqs/>
Correction against mistype: Change "vaue"s to "value" in Herfried's
post.
Mar 7 '08 #4
If that's the most significant contribution you have to a thread then don't
bother.

It was painfully obvious to anyone with half a brain exactly what Herfried
was demonstrating.
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:d5**********************************@p25g2000 hsf.googlegroups.com...
On Mar 7, 11:42 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.atwrote:
"Alan Gillott" <argillot...@gmail.comschrieb:
While line by line debugging some code I noticed that whenever I run
through Property Set it also subsequently calls Property Set with the
having been Gotten data? Can anyone explain.

Post your implementation of the property.

Maybe you are recursively calling the 'Set' accessor of the property?

\\\
Public Property Foo() As Object
Set(ByVal Value As Object)
Me.Foo = Vaue
End Set
...
End Property
///

This won't work. Use the code below instead:

\\\
Private m_Foo As Object

Public Property Foo() As Object
Set(ByVal Value As Object)
m_Foo = Vaue
End Set
...
End Property
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Correction against mistype: Change "vaue"s to "value" in Herfried's
post.

Mar 8 '08 #5
On Mar 8, 5:17*am, "Stephany Young" <noone@localhostwrote:
If that's the most significant contribution you have to a thread then don't
bother.

It was painfully obvious to anyone with half a brain exactly what Herfried
was demonstrating.

"kimiraikkonen" <kimiraikkone...@gmail.comwrote in message

news:d5**********************************@p25g2000 hsf.googlegroups.com...
On Mar 7, 11:42 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-

h...@gmx.atwrote:
"Alan Gillott" <argillot...@gmail.comschrieb:
While line by line debugging some code I noticed that whenever I run
through Property Set it also subsequently calls Property Set with the
having been Gotten data? Can anyone explain.
Post your implementation of the property.
Maybe you are recursively calling the 'Set' accessor of the property?
\\\
Public Property Foo() As Object
Set(ByVal Value As Object)
Me.Foo = Vaue
End Set
...
End Property
///
This won't work. Use the code below instead:
\\\
Private m_Foo As Object
Public Property Foo() As Object
Set(ByVal Value As Object)
m_Foo = Vaue
End Set
...
End Property
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Correction against mistype: Change "vaue"s to "value" in Herfried's
post.- Hide quoted text -

- Show quoted text -
I just wanted to pay attention for OP not to get an annoying error.
Saying this of you is completely nonsense and against goodwill that i
just wanted to warned the OP with the purpose of being complementary,
nothing more.
Mar 8 '08 #6
That's just sanctimonious claptrap.

As the OP is quite capable of single-stepping through his code, I am
absolutely certain that he is quite capable of resolving a simple typo
without someone attempting to save him from himself.

Such posts do nothing more than clutter up threads, and the newsgroup in
general, and add no value to the discussion at hand whatsoever.
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:c0**********************************@59g2000h sb.googlegroups.com...
On Mar 8, 5:17 am, "Stephany Young" <noone@localhostwrote:
If that's the most significant contribution you have to a thread then
don't
bother.

It was painfully obvious to anyone with half a brain exactly what Herfried
was demonstrating.

"kimiraikkonen" <kimiraikkone...@gmail.comwrote in message

news:d5**********************************@p25g2000 hsf.googlegroups.com...
On Mar 7, 11:42 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-

h...@gmx.atwrote:
"Alan Gillott" <argillot...@gmail.comschrieb:
While line by line debugging some code I noticed that whenever I run
through Property Set it also subsequently calls Property Set with the
having been Gotten data? Can anyone explain.
Post your implementation of the property.
Maybe you are recursively calling the 'Set' accessor of the property?
\\\
Public Property Foo() As Object
Set(ByVal Value As Object)
Me.Foo = Vaue
End Set
...
End Property
///
This won't work. Use the code below instead:
\\\
Private m_Foo As Object
Public Property Foo() As Object
Set(ByVal Value As Object)
m_Foo = Vaue
End Set
...
End Property
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Correction against mistype: Change "vaue"s to "value" in Herfried's
post.- Hide quoted text -

- Show quoted text -
I just wanted to pay attention for OP not to get an annoying error.
Saying this of you is completely nonsense and against goodwill that i
just wanted to warned the OP with the purpose of being complementary,
nothing more.

Mar 8 '08 #7

"Stephany Young" <noone@localhostwrote in message
news:Ot**************@TK2MSFTNGP05.phx.gbl...
That's just sanctimonious claptrap.

As the OP is quite capable of single-stepping through his code, I am
absolutely certain that he is quite capable of resolving a simple typo
without someone attempting to save him from himself.

Such posts do nothing more than clutter up threads, and the newsgroup in
general, and add no value to the discussion at hand whatsoever.
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:c0**********************************@59g2000h sb.googlegroups.com...
On Mar 8, 5:17 am, "Stephany Young" <noone@localhostwrote:
>If that's the most significant contribution you have to a thread then
don't
bother.

It was painfully obvious to anyone with half a brain exactly what
Herfried
was demonstrating.

"kimiraikkonen" <kimiraikkone...@gmail.comwrote in message

news:d5**********************************@p25g200 0hsf.googlegroups.com...
On Mar 7, 11:42 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-

h...@gmx.atwrote:
"Alan Gillott" <argillot...@gmail.comschrieb:
While line by line debugging some code I noticed that whenever I run
through Property Set it also subsequently calls Property Set with the
having been Gotten data? Can anyone explain.
Post your implementation of the property.
Maybe you are recursively calling the 'Set' accessor of the property?
\\\
Public Property Foo() As Object
Set(ByVal Value As Object)
Me.Foo = Vaue
End Set
...
End Property
///
This won't work. Use the code below instead:
\\\
Private m_Foo As Object
Public Property Foo() As Object
Set(ByVal Value As Object)
m_Foo = Vaue
End Set
...
End Property
///
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Correction against mistype: Change "vaue"s to "value" in Herfried's
post.- Hide quoted text -

- Show quoted text -

I just wanted to pay attention for OP not to get an annoying error.
Saying this of you is completely nonsense and against goodwill that i
just wanted to warned the OP with the purpose of being complementary,
nothing more.
Sort of like top poster's?

Galen

Mar 8 '08 #8
Stephany Young wrote:
That's just sanctimonious claptrap.

Such posts do nothing more than clutter up threads, and the newsgroup
in general, and add no value to the discussion at hand whatsoever.
And your post is somehow adding value? Talk about pots calling kettles black...
Mar 8 '08 #9

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

Similar topics

3
by: rsherman | last post by:
I am running a windows app. with a stored procedure and the stored proc runs up to 90 seconds, the time out in the connection string is set for 90 seconds. It seems that the time out setting is...
0
by: Brian Young | last post by:
Hi all. I'm using the Property Grid control in a control to manage a windows service we have developed here. The windows service runs a set of other jobs that need to be managed. The control...
4
by: Bill Coan | last post by:
NOTE: This was posted earlier to vsnet.vstools.office under a different subject line but received no response. I'm having a problem automating Word's Find object from a .NET application, using...
5
by: RSH | last post by:
I havent been able to set a property from another class with out getting some sort of error. Can someone please tell me what I'm doing wrong here? Public Class Form1
6
by: David Hearn | last post by:
I have a property in a user control that I am setting: Private strPageName as String Public Property PageName() as String Get Return strPageName End Get Set(byVal Value as String)...
15
by: Lauren Wilson | last post by:
Owning your ideas: An essential tool for freedom By Daniel Son Thinking about going into business? Have an idea that you think will change the world? What if you were told that there was no way...
0
by: Alli | last post by:
I have a web user control with a property that has the browsable attribute set to true, but property doesn't show up in the HTML design property window when I add the control to a web form. My...
1
by: Allan Ebdrup | last post by:
I have a asp.net v2 website that runs fine on our development server. I have published the website to a stage server and it runs fine, but when I publish it to production I get the following error:...
4
by: Jason Wolf | last post by:
I have an object which runs in a sperate thread, from the main thread, and while running it updates a public property. In my main form I defined databinding on the property and I would like to see...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.