|
I think your only recourse is to run it under the debugger and investigate every variable and condition (in the appropriate block of code) until you find the problem.
".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
|
|
|
|
|
Did you mean to specify BypassCache instead of NoCacheNoStore ? That's what I use to achieve a similar result and it works fine.
/ravi
|
|
|
|
|
Can you help me about problem delete multiline on listview
Thank you!
modified on Friday, April 8, 2011 6:36 AM
|
|
|
|
|
Possibly. It depends what the problem is.
|
|
|
|
|
Oh dear God! Do questions like this still exist!
|
|
|
|
|
They do indeed. How are you doing mate?
|
|
|
|
|
|
I'm not bad. I'm doing a fair bit of travelling up to Glasgow now, so may be able to make a DDD talk or two in Scotland.
|
|
|
|
|
I'm not allowed to discuss VB.Net in this forum.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Loop through the selected items and remove them.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
If this was posted in the correct forum, yes, we could.
".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
|
|
|
|
|
Yes.
It is quite simple really.
What you need to do is explain what the problem is and provide some code.
Then explain what you have attempted and where you think the problem is.
I think this is better than the altenative method, teaching everybody else to read your mind!
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
CCC Link[ ^]
Trolls[ ^]
|
|
|
|
|
|
fififlowertot wrote: Hi , I needed to verify that the last 4 digits in a number are 0000. The
number was of format 999999-0000 so i checked with a regular expression
@"\d-\(0){4}" but now the '-' will not be there and it always just a number
with last 4 digits as 0 i.e 0000 I am unable to think of a regular expression
to validate this string. any help will be greatly appreciated.
This should have been asked in the Regular Expression forum. However, seeing that the question is here now, and seeing that I'm in a good mood, the regex for this is:
^(\d*(0){4}) [Edited to add deleted question in]
I'm not a stalker, I just know things. Oh by the way, you're out of milk. Forgive your enemies - it messes with their heads
My blog | My articles | MoXAML PowerToys | Onyx
modified on Thursday, April 7, 2011 12:33 PM
|
|
|
|
|
yeah i was just deleting this when the mail of a reply came in inbox. thanx.
|
|
|
|
|
|
Don't delete your posts!
0) There is a Regular Expression forum.
1) Have you tried Expresso?
2) Have you tried <a href="http://www.codeproject.com/KB/string/RegexTester_.aspx">this</a>[<a href="http://www.codeproject.com/KB/string/RegexTester_.aspx" target="_blank" title="New Window">^</a>]?
I don't know why you would want to be capturing the zeroes if you just want to do validation.
Did you intend to escape the hyphen (-) rather than the left-parenthesis (() ?
|
|
|
|
|
PIEBALDconsult wrote: Don't delete your posts!
Unless of course you've come to realize that what you typed makes you look like a complete tool.
There are exceptions to every rule.
".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
|
|
|
|
|
Is this what's meant by a regular expression tool?
|
|
|
|
|
|
Dalek Dave's a tool? You could well be right.
|
|
|
|
|
No, not even then.
And, no there are not.
|
|
|
|
|
Pete O'Hanlon wrote: the regex for this is:
^(\d*(0){4})
Send this in to Alex Trebeck for use on Jeopardy, and we'll all guess what the question was.
"I'll take code fragments for a thousand, Alex."
|
|
|
|
|
Hallo,
there is a List which has to be filled with Strings when the program starts up. I am missing the common practice in such cases, if there is any at all.
I am thinking of putting all strings names in a text file from where the programme should read and fill up the List. That way, I will always be able to change it, by adding more names, changing or deleting them, avoiding the risk to mess up with the code.
Are there any better suggestions on that?
Would that be too slow if the List came at thousands of names?
Should it be better to have a binary list of text strings, if something like that would be possible (through serialization maybe?)
Those are some of the questions coming up, when I am thinking of the appropriate solution to the problem.
Thanks.
|
|
|
|
|
I would go with strings in a file, then just
List<string> myList = new List<string>();
myList.AddRange(File.ReadAllLines(path)); The memory space shouldn't be a problem, even with thousands of strings, and it won't take long to load anyway. You could hold them as XML data, but then it is a bit harder to edit: you can cause errors in the file. At least with straight text, you don't need any special tools (or intelligence) to change them, so that job can be hived off to the office idiot junior.
A quick test said mine read 5000 lines in 7mSec (on the first try, so caching was not involved) - and my PC is nowhere near SOTA!
Always go with an option that means you don't have to re-compile!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|