Wierd For...Each behavior

  • Thread starter Thread starter Tom
  • Start date Start date
And we've said:
about it. Post the code. It's no challenge for a man of your calibre is
it?

Hi Fergus,

LOL! My that's a mighty spoon of much spoon'ness that you have in your
very hands!

Smite him so!! ;-)

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Slow internet connection?
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Fergus Cooney said:
Hi Jack,

Shame you're having a bad week. Still, you're always welcome to come here
and inappropriately vent your spleen. We like to be helpful. If we can't do
that then we're happy to be punchbags for people with a bit a of anger and
frustration.

Hope this helps.

NOT

My week is going quite nicely. Perhaps you fail to distinguish between
legitimate code criticism and flaming. I'm less inclined to post code when
someone _demands_ that I do so, particularly when they obviously haven't
even bothered to see if their own code compiles, or even works, before I
have the opportunity to volunteer my own suggestion. Only the people who
pay me get the right to dictate how and when I write code for them.
 
Nick,
Armin, Jay B and someone else where arguing about this subject a while ago
in this newsgroup.
(Armin not realy he was keeping his mouth, I think he knew that he was
right)
I did contribute not much, just evaluating and testing what Jay and the
otherone (It is a regular one but I forgot who it was) where saying.
At the end we could see, that the reverse indexed for loop that Armin had
supplied was the best.
In my mind I was started with do while, but when you evaluate and test that
will give unpredictable errors.
Therefore I gladly like to see a good working do while for deleting controls
with less code than Armins one.
The one that Armin had added was only
For i = 1 to col-1 step -1
But there was in my eyes an other error with the dispose, I did want to show
that too.
Therefore I added some lines, without testing it was the remove I did want
to show.
So I am waiting on the nice do while routine.
So technical it is not wrong and I think that was just to prickle me.
:-)
Cor
 
someone _demands_ that I do so, particularly when they obviously haven't
even bothered to see if their own code compiles, or even works, before I

Hi Jack,

It's called "Psuedo code" okay?

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Slow internet connection?
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
It's called "Psuedo code" okay?

Spelling mistakes 'no all, "Pseudo" rather.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Slow internet connection?
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Hi Cor,

You won't get any code out of Jack!, maybe allot of bullshit but not
code!

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Slow internet connection?
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Cor said:
Hi Jack Padawan,
There is no If in it, that is also a typing error, but don't give critique

I am not attempting to point out any typographical errors (of which there
are many, but that's besides the point.)

You have declared a reference variable 'ctl' but have failed to assign it to
anything, and then you evaluate to see what type it contains - which will
always be Nothing.
Come with that nice example with a "do while loop".
We are waiting
Cor

Perhaps your time is best spent attempting to write code that works while
you're waiting for my solution. I was in the process of posting such code
myself, until I read your childish flurry of posts demanding that I do so.
Unlike yourself, I prefer to post code that works, and sometimes that takes
more than a few minutes to do. You have no right to demand anything from
me, particularly with the quality of the code you've posted to this point.
I fully expect that you'll continue to incessantly post your childish
demands for me to do so, however I'll go ahead and post it for the benefit
of the group, despite your taunts.

I'm also in the habit of actually testing any code that I post to be sure
that it works, which might be a foreign concept to you. However, I'm not
posting from my development system, so I was waiting to do so in a few
hours. Since nobody here is willing to cut me a f...in' break, I'll go
ahead and post without doing so, but only under duress. I fully expect that
you'll choose to jump on any error in my post, however trivial it may be,
instead of providing working code of your own making, but I guess that's
something I'll have to risk to keep you from posting several dozen messages
in the next hour or two.

Dim idx As Integer

idx = 0

While idx < MyPanel.Controls.Count ' while in bounds
if typeof MyPanel.Controls.Item(idx) is Label then
MyPanel.Controls.RemoveAt(idx)
else
idx = idx + 1 ' otherwise advance to next control
end if
End While
 
Nak said:
Spelling mistakes 'no all, "Pseudo" rather.

Nick.


Pseudocode has nothing to do with bad VB.NET code that doesn't work. Now
that you've looked up the spelling, you might as well also look up the
meaning.
 
Mr. Padawan,
Maybe you cannot type that fast, but for you start to try that, take a look
at the answering post from Tom.
Cor
 
Hi Jack,

|| My week is going quite nicely.

Like I care.

|| Perhaps you fail to distinguish between
|| legitimate code criticism and flaming.

I distinguish very subtle differences in tone. I detected in yours hints
of smirk and holier-than-thou. Legitimate code criticism is done with
sensitivity. Yours was not apparent.

|| I'm less inclined to post code when someone _demands_ that I do so

But you're quite happy to make demands on others.

|| particularly when they obviously haven't even
|| bothered to see if their own code compiles

As everyone has pointed out - this is a pseudo point.

|| Only the people who pay me get the right to dictate
|| how and when I write code for them.

I pity you. The people who pay me dictate <what> I write for them. They
pay me to know the how. And they trust me enough to give me great self
determination over the when.

Yours, with more than a hint of smirk and superiority, and self-righteous this
and that,
Fergus

ps. Thank you for the opportunity to vent my spleen, anger and frustration.
 
Fergus Cooney said:
Hi Jack,


ps. Thank you for the opportunity to vent my spleen, anger and frustration.

Yes, you would rather do that than post your own solution, hypocrite.
 
Cor said:
Come with your Example, but we will see, tomorrow there is nothing and the
day after tomorrow again

Let's see who was the first one to post a _working_ example. Put up, or
shut up yourself. I know that you'd rather challenge me than write code
that works,so my code's posted. Where's yours? I'm still waiting. What's
the hold up on your end? Too busy posting flames to write code that works?
 
I am not attempting to point out any typographical errors (of which there
are many, but that's besides the point.)

Nice contradiction Jack!
You have declared a reference variable 'ctl' but have failed to assign it to
anything, and then you evaluate to see what type it contains - which will
always be Nothing.

That's because it was untested pseudo code, is that such a big deal? It
wasn't even your question in the first place so why are you getting so
emotional Jack?
Perhaps your time is best spent attempting to write code that works while
you're waiting for my solution. I was in the process of posting such code
myself, until I read your childish flurry of posts demanding that I do so.
Unlike yourself, I prefer to post code that works, and sometimes that takes
more than a few minutes to do. You have no right to demand anything from
me, particularly with the quality of the code you've posted to this point.
I fully expect that you'll continue to incessantly post your childish
demands for me to do so, however I'll go ahead and post it for the benefit
of the group, despite your taunts.

You are totally right, no one has the right to demand anything from you, but
on the other hand they have every right to treat you like a c*nt if you act
like one! And don't worry, he won't be the only one to flame you in this
newsgroup, I should imagine plenty of other people would gladly oblige Jack!
I'm also in the habit of actually testing any code that I post to be sure
that it works, which might be a foreign concept to you. However, I'm not
posting from my development system, so I was waiting to do so in a few
hours. Since nobody here is willing to cut me a f...in' break, I'll go
ahead and post without doing so, but only under duress. I fully expect that
you'll choose to jump on any error in my post, however trivial it may be,
instead of providing working code of your own making, but I guess that's
something I'll have to risk to keep you from posting several dozen messages
in the next hour or two.

Development system huh? You're getting flash, so what are you using now
then? You're gaming system maybe, and you have been disturbed half way
through a game, that's why you're upset? Oh no wait, no one is willing to
cut you a "f...in' break", has that got anything to do with you being an
uptight self-righteous bastard that has obviously got out of bed on the
wrong side? I don't think that this has got anything to do with code
anymore? Do you Jack?

Maybe you might want to take a look at the amount of people that Cor
actually helps. I must admit that I have had arguments with Cor in the
past, but this was simply due to his misunderstanding of my posts. But this
on the other hand is simply down to you trying to flex some programming
muscle in the newsgroup, and just looking like a small girl in lilac who has
just dropped her dummy out of the pram. There is no law saying that you
cannot write pseudo code in a newsgroup, most people are smart enough to
work their way around it, and if not it gives them an incentive to. What
would you think is the best way to learn? like a parrot of with guidance,
what way Jack?

You also seem very defensive about writing any mistakes, I wonder why that
is, anything to do with you making a big mistake by starting all of this in
the first place? Are you all right Jack? Well are you Jack?

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Slow internet connection?
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Cor said:
Mr. Padawan,
Maybe you cannot type that fast, but for you start to try that, take a look
at the answering post from Tom.
Cor

If you spent more time reading than posting, you might actually learn
something.
 
Pseudocode has nothing to do with bad VB.NET code that doesn't work. Now
that you've looked up the spelling, you might as well also look up the
meaning.

For who's benefit, yours? Everyone else here is smart enough to know what
it means, it's the outline of code, it doesn't have to function correctly
but simply give a logical outline that should provide the final solution.
Pseudo code can also have errors in it strangely enough, for example,

1. Flame Cor's code aggressively in newsgroup
2. While receiving flack from doing the above
2.1 Act like a complete tosser
2.2 Become very unpopular in the newsgroup
2.3 End While
3. Leave, with tail between legs.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Slow internet connection?
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Let's see who was the first one to post a _working_ example. Put up, or
shut up yourself. I know that you'd rather challenge me than write code
that works,so my code's posted. Where's yours? I'm still waiting. What's
the hold up on your end? Too busy posting flames to write code that
works?


Bingo, it was myself JACK, in the form of a Zip file.

Nick.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Slow internet connection?
Having problems with you job?
You're marriage is on the rocks?
You can't sleep at night?
You have a drink and drugs addiction?
You are sexually impotent?
Then enable Option Strict!
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
 
Back
Top