|
Christian Graus wrote: and the problem is...... ???
... the missing of the ability to learn from past experience... even after 1100+ posts...
|
|
|
|
|
Sonia - what error is the compiler returning? I'll give you a hint - you should use == not = in the check, but the compiler would have told you this.
You have to learn how to interpret compiler errors rather than reaching for CodeProject as soon as you get an error you've not seen before. This and the error you posted below could both have been found with a little bit of effort and research on your part.
|
|
|
|
|
Problem is the following line of code.
There is accuring an error.
argument 1 cannot convert form annonymous method to predicate
obj.Find(delegate(person p) { return p.age = 12; });
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia - I've already told you what the answer is. Read the full text above.
|
|
|
|
|
Sonia - I thought that I would see whether Google would have been able to answer your question. You know what? The first entry in the list matched your problem exactly. Why not try reaching for google rather than using us to help you compile your code? It'll help you become a better developer in the long run.
|
|
|
|
|
can i use two filters in the find statement , according to there should not be two return statements in a single block.
But i have to set two where conditions to refine the record.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Wow - you didn't listen to a thing he said, did you ?
You have a function that returns bool. It's up to you, through the writing of actual code, to decide when that is true, or false. It can depend on as many different conditions as you like.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
This time , i think u did not care to look the question carefully.
the new question has nothing to do with the prior one.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
True - but it represents you ignoring what has been said to your countless times, not even thanking either of us for doing your job for you, and pressing on with the next thing you can't work out.
I answered the question, didn't I ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Why not try it? Rather than asking me to do your thinking for you, why not try it yourself. Honestly - it's as though you are being deliberately stupid.
|
|
|
|
|
You think this hasn't been said to her before ? She's lucky I got interested enough in the fact I didn't know the solution off the top of my head. And yes, I googled and the first hit told me exactly what to do, so I mocked up a sample for my own benefit as much as hers.
I love the idea of anonymous predicates, but I don't find myself searching lists often enough to really use them.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: You think this hasn't been said to her before ?
I know that we've both told her this many times. If I search through her history, I can find countless examples where she's been told to learn the basics. I can only hope that one day she might have the sense to think "Wait a second. These guys do know what they are talking about."
|
|
|
|
|
Pete O'Hanlon wrote: I can only hope that one day she might have the sense to think
However, I think this goes in the same category as "I hope one day the israeli's and arabs might have the sense to think".
|
|
|
|
|
Mate, that was the least of her problems.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sorry Pete.....
Thanks a Lot , For sorting out my problem.and one more thing , i am the luckiest one , for having discussion with the MVP Really Thanks a Lot
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
It is not MVC it is MVP's
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Does anyone know how to open a MSI Database in Visual C#.net or Visual C++.net?
Any sample code would be greatly appreciated..
|
|
|
|
|
You mean a cab file ? You need a third party library for that.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
You can use the Orca tool in the Windows SDK. Not sure if it has an API though.
|
|
|
|
|
Hi!
There's a Windows Installer Object Library (COM DLL) you can use.
There's a little twist, though - somehow no class definitions are created in the RCW, only interface definitions.
So you can't create an object from the interface directly but have to use something like this (after adding the reference to %SYSTEM32%\msi.dll):
WindowsInstaller.Installer inst = (WindowsInstaller.Installer)Activator.CreateInstance(Type.GetTypeFromProgID("WindowsInstaller.Installer"));
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Hello
Im using ComboBox having as datasource a datatable result of an sql query
I'm not specialist in combobox feature and I don't realy understand the purpose of the different AutoComplete properties
Can I use them to allow the user to add some entries in the combo box ?
In other word if the entry needed by the user is not in the datasource list, how can I get a trigger to add the user entry in the list !
Warn : I'm not asking about how to programaticaly add an entry in my datasource (datatable) I can do that.
But I want to know how to get the information from the Combobox that a new entry is needed ?
Are AutoComplete feature usefull in such case ?
|
|
|
|
|
Hi,
I'm building an application which has 3 forms (really large input data required, huh). I have put these 3 forms in a tab control.
Now the requirement is, before filling form 1, i cannot move to form 2 & so on. So, can i disable the tab 2 & 3? I don't want to disable all group controls. It would be nice if i can stop the user from going to those tab panes. I can enable tab 2 after clicking button 'Next' which is in tab 1. Same thing i have to repeat for tab 2.
obviously, i can use 2 forms by show & hide tactic, but for some reason, it would be nice if i can use Tab control.
Thanx in advance...
|
|
|
|
|
There is an enabled property, but that kind of defeats the purpose of a tab control, sounds like you want a wizard, really.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: There is an enabled property
I was also thinking the same, but tabpages don't have a Enabled property. Tab control do have, but it disables the whole control.
|
|
|
|
|
OK - I wasn't sure, I meant to say, 'I think there's an enabled property'. But, I recall I've always had to remove tabs rather than disable them
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|