Why helping people on programming forums sucks today...
-
I am helping someone out on another programming forum. The OP's question was essentially "How do I get selected items from a data grid into a csv file?" I thought I would be nice and give a little more info than "Let me google that for you." So I wrote he could collect his selected items with the code
Dim listClass As IList(Of [MyClass]) = DirectCast(MyDataGrid.SelectedItems, IList(Of [MyClass]))
His response was he tried it but got an error: MyClass not defined So my question is how do I respond to something like that? I don't think putting YourClass instead of MyClass would have worked either. At least using "MyDataGrid" compiled for him. Maybe I will just stay comfortable in codeproject and not venture out.Brent
Personally I think all response past that point is useless unless you have a full page of code with the database already written and the GUI designed for them. It essentially tells me they strictly just cut and pasted your code on top of some other cut and pasted code and don't have the slightest dang clue what any of it does. This is from the viewpoint of a newbie who has spent massive hours on Google and CP and a couple of other sights learning how to code. Just contain your shock( at the pure stupidity), be comfortable in the knowledge that you tried to help and move on.
Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning.
-
I am helping someone out on another programming forum. The OP's question was essentially "How do I get selected items from a data grid into a csv file?" I thought I would be nice and give a little more info than "Let me google that for you." So I wrote he could collect his selected items with the code
Dim listClass As IList(Of [MyClass]) = DirectCast(MyDataGrid.SelectedItems, IList(Of [MyClass]))
His response was he tried it but got an error: MyClass not defined So my question is how do I respond to something like that? I don't think putting YourClass instead of MyClass would have worked either. At least using "MyDataGrid" compiled for him. Maybe I will just stay comfortable in codeproject and not venture out.Brent
Tell him he needs to get the
My
namespace assembly from MSDN.".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997 -
I am helping someone out on another programming forum. The OP's question was essentially "How do I get selected items from a data grid into a csv file?" I thought I would be nice and give a little more info than "Let me google that for you." So I wrote he could collect his selected items with the code
Dim listClass As IList(Of [MyClass]) = DirectCast(MyDataGrid.SelectedItems, IList(Of [MyClass]))
His response was he tried it but got an error: MyClass not defined So my question is how do I respond to something like that? I don't think putting YourClass instead of MyClass would have worked either. At least using "MyDataGrid" compiled for him. Maybe I will just stay comfortable in codeproject and not venture out.Brent
-
I am helping someone out on another programming forum. The OP's question was essentially "How do I get selected items from a data grid into a csv file?" I thought I would be nice and give a little more info than "Let me google that for you." So I wrote he could collect his selected items with the code
Dim listClass As IList(Of [MyClass]) = DirectCast(MyDataGrid.SelectedItems, IList(Of [MyClass]))
His response was he tried it but got an error: MyClass not defined So my question is how do I respond to something like that? I don't think putting YourClass instead of MyClass would have worked either. At least using "MyDataGrid" compiled for him. Maybe I will just stay comfortable in codeproject and not venture out.Brent
-
Now that's a shoehorn :laugh:
-
I am helping someone out on another programming forum. The OP's question was essentially "How do I get selected items from a data grid into a csv file?" I thought I would be nice and give a little more info than "Let me google that for you." So I wrote he could collect his selected items with the code
Dim listClass As IList(Of [MyClass]) = DirectCast(MyDataGrid.SelectedItems, IList(Of [MyClass]))
His response was he tried it but got an error: MyClass not defined So my question is how do I respond to something like that? I don't think putting YourClass instead of MyClass would have worked either. At least using "MyDataGrid" compiled for him. Maybe I will just stay comfortable in codeproject and not venture out.Brent
He probably went to another forum to post: "So I told this guy I got an error because MyClass was not defined. Silly bugger thought I actually meant MyClass literally. I was just translating the error according to his example to make it easier for him to understand, but it seems it didn't help. Sigh."
-
Something similar happened to me as well. Although here[^], I am feeling really guilty.
"Your code will never work, Luc's always will.", Richard MacCutchan[^]
Don't feel guilty, that question itself makes no sense.
"Real men drive manual transmission" - Rajesh.
-
I am helping someone out on another programming forum. The OP's question was essentially "How do I get selected items from a data grid into a csv file?" I thought I would be nice and give a little more info than "Let me google that for you." So I wrote he could collect his selected items with the code
Dim listClass As IList(Of [MyClass]) = DirectCast(MyDataGrid.SelectedItems, IList(Of [MyClass]))
His response was he tried it but got an error: MyClass not defined So my question is how do I respond to something like that? I don't think putting YourClass instead of MyClass would have worked either. At least using "MyDataGrid" compiled for him. Maybe I will just stay comfortable in codeproject and not venture out.Brent
-
dbrenth wrote:
So my question is how do I respond to something like that?
By telling him to replace [MyClass] with the class name he is using. Everyone has a brain-fart now and then - give him the benefit of the doubt. Cheers, Drew.
Drew Stainton wrote:
give him the benefit of the doubt.
If he wants charity, he should say he's from the Salvation Army hold out a coin cup.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997 -
I am helping someone out on another programming forum. The OP's question was essentially "How do I get selected items from a data grid into a csv file?" I thought I would be nice and give a little more info than "Let me google that for you." So I wrote he could collect his selected items with the code
Dim listClass As IList(Of [MyClass]) = DirectCast(MyDataGrid.SelectedItems, IList(Of [MyClass]))
His response was he tried it but got an error: MyClass not defined So my question is how do I respond to something like that? I don't think putting YourClass instead of MyClass would have worked either. At least using "MyDataGrid" compiled for him. Maybe I will just stay comfortable in codeproject and not venture out.Brent
dbrenth wrote:
Maybe I will just stay comfortable in codeproject and not venture out.
You can be adequately abused here. :-D
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes