Type: Posts; User: Deranged
Search took 0.01 seconds.
January 17th, 2013, 05:16 PM
Are you forgetting to set value X when they click the button? Something like:
private void button1_Click(object sender, EventArgs e)
Int32.TryParse(txtBox.Text, out X);...
November 14th, 2012, 01:21 PM
I just wrote up something real quick in Notepad++ that you can do that I would recommend.
foreach (string s in fileNames)
using (Streamreader sr = new Streamreader(s))
November 14th, 2012, 01:06 PM
So what I am seeing here is that whichever radio button is check the textBox1 will display the strings you have defined. You should be seeing that text. Now, I do not see anything about a checkbox...
June 29th, 2012, 10:29 AM
Line 21 did you mean to put:
int d = a * b * c;
That's not causing your problem but just would make sense for what you put in Console.WriteLine
I'd also change line 26 to...
June 28th, 2012, 01:58 PM
You can pass the parameter to a stored procedure and check in there if it is null or 0 then do the Select all, and use a reader to get the results?
June 28th, 2012, 01:25 PM
Absolutely! If you need any more help feel free to ask.
June 28th, 2012, 10:39 AM
I was only using \n for console testing, doesn't really matter. I would personally use Environment.Newline for cross platform.
I was renewing the list because I didn't want to read all the...
June 27th, 2012, 10:46 PM
Ok so I wrote this up extremely fast, but this is an idea of how I would read the file. If I had your source or knew exactly how you specify the property or what you want to do with it I'd be able to...
June 27th, 2012, 08:54 PM
I'm just going to install VS2010 lol... give me an hour or so I'll reply back with something you can work with.
June 27th, 2012, 07:42 PM
Oh yea, duh, forgot there is a ")" at the end lol
In that case, couple ways to deal with this.
//for the properties value
int num = 0;
June 27th, 2012, 07:34 PM
I personally do not like ReadAllLines as it can get very memory intensive but if the files are small I guess it doesn't really matter.
To fix your substring issue you can use:
June 27th, 2012, 12:59 PM
That's a really odd property file. Have you written anything yet?
June 19th, 2012, 05:07 PM
But either way, it can be a pain, lol
June 19th, 2012, 04:40 PM
Well there are many ways to reduce those combinations.
1. We don't really know what kind of data he is working with. If he had dates in one of the columns, for example, column 4, you can regex...
June 19th, 2012, 12:51 PM
I am really curious about this question, which I am having a hard time understanding. Are you saying you have 6 columns, and one column could be something like:
June 19th, 2012, 12:36 PM
I use this for a textbox, pretty sure it's close to the same as a rich text box.
MessageBox.Show("No text detected, please enter...
June 11th, 2012, 05:49 PM
Good point, so just keep Random alive and pass it to the method? or add sleep time?
June 11th, 2012, 05:30 PM
Here is something I threw together real quick:
Dim file As String = "D:\file.xml"
Dim line As String
Dim lines As New List(Of String)
I work with hundreds if not a thousand insurance companies, they fail, hardcore. I have see hundreds of delimited files, all kinds are different in some way. Ugh, but you're right, tab delimited is...
Anyways, I went through it real quick, it definitely needs more optimizing, I would think about that before you get too far or it will get confusing. I combined the choice classes, I didn't see a...
Where is MainGame()?
supposed to be: hero.Magic?
I do very similar stuff at work all day. I actually have a dll that has an entire flat file validation. The dll calls for a custom XML made for individual files I insert into a database. In my XML it...
I find it too inconsistent, or rather too generic. I parse files all day and if the file has a lot of mistakes, your going to grab those mistakes with the .Split
For example if you had a CSV file...
Here is my method of doing it, console application so that you can enter whatever sentence you want. (I do not like String.Split)
That was a fun movie. I want to watch it again. We should...
November 22nd, 2011, 12:48 AM
Well I know I completely messed it up so I didn't post it. I honestly cant figure out what to do at this point even with suggestions. I just need to probably drop this and learn a bit more to be...
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!