1,443 Posted Topics
Re: Can you use an if(!myExpression) statement? while(some_expression && another_expression) { if(!other_expression) { count++; } } | |
Re: Minor change, big difference: using System.Text.RegularExpressions; namespace DW_420515_CS_CON { class Program { static void Main(string[] args) { string SearchText = "7,true,NA,false:67,false,NA,false:5,false,NA,false:5,false,NA,false"; string strRx = @"\btrue\b"; int NumberOfTrues = Regex.Matches(SearchText, strRx).Count; } } } | |
Re: If your program has no *references*, you can probably bypass the use of the DLL. It's an integral part of the platform and something that should not cause you worry. If you are doing cross-language programming in dot net, you absolutely will use a DLL in some manner. | |
Re: What will you do with the non-table content like embedded SQL, stored procedures, forms, etc.? This almost seems like it would be a better job for VBA where you would write macros to export the target tables? | |
Re: The project you were working on in December 2011 already does a lot of the processing (like loading a text file into a collection of class objects). Does that not serve as a good reference? Code reuse will be one of the greatest benefits to your academic or business career. | |
Re: http://www.devdaily.com/java/java-mysql-update-query-example | |
Re: Why don't you just use: Dim fileOut as new StreamWriter("path\filename.txt") ...then write to it, then close it and move it? | |
Re: Are the last three parameters optional? ...from looking at [this documentation](http://msdn.microsoft.com/en-us/library/windows/desktop/aa365512(v=vs.85).aspx) | |
Re: What was it supposed to be? | |
Re: If you have them in a list, you can use .Contains() without the extra Array.FindIndex() stuff. | |
Re: I would use a function to return a boolean stating if the two times are at the good intervals. If you can send your selections as DateTime objects to the function, it will tell you if they are the correct intervals. Here is an example of the function being called … | |
Re: That's the [CODE Segment](http://en.wikipedia.org/wiki/X86_memory_segmentation). Don't worry about trying to make it match (at this point). | |
Re: You can load the program with debug and just step through it. You can also text-capture the dump of the debug into a text file and rebuild the source code. | |
Re: There are open-source compiler projects on codeplex and sourceforge and sites like that. How good are you at assembly? If your intermediate step is going to be ASM, is it good enough for you to then compile the ASM with something like a86 [a86](http://eji.com/a86/)? ...or are you building the assembly … | |
Re: I use the Ionic [Dot Net Zip utility](http://dotnetzip.codeplex.com/) library. | |
Re: You could get something like dot net Reflector and disassemble the executable. You could then (probably) see the strings you're looking for. | |
Re: It's also difficult for us to be motivated to help you do something we know you don't want to do or even try to do. Your requirements are pretty steep (challenging) for someone brand-new to C++ (unless you have lots of time to finish it). ...but that's assuming you also … | |
Re: You would put that option on the command-line when you compile the program after the word javac Hopefully, this thread can be moved to the actual java forum. | |
Re: Which system's IP address do you want? 1) The current one? 2) Some remote one? | |
Re: Like this?: using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace DW_420137_CS_CON { class Program { static void Main(string[] args) { List<string> lst_strSurNames = new List<string>() { "v/d Haren", "van den Haren", "Jones", "von den Haren", "Smith", "von den Berg", "van den Berg", "v/d Berg" }; Regex rxTargetSurNames = new Regex(@"v.{0,3}\bd.{0,3} [a-z]{1,}"); … | |
Re: If **results** is already a string array, why do you copy it to another string array? Are ALL groups of employees with the same years of experience to be grouped together? | |
Re: Is it a console app? If it is (and you are just building strings), you can just use the ampersand & between strings to concatenate them. If you are issuing two print statements, you can use Console.Write() instead of Console.WriteLine(); If is is going out to a file (through StreamWriter), … | |
Re: I ran the test in debug mode with some slight modifications (making all calculations return a long) and came up with different results: 3508 = Compute 1169 = ForEach 427 = Linq 3412 = Compute 1170 = ForEach 377 = Linq 3388 = Compute 1282 = ForEach 379 = Linq … | |
Re: What kind of values? | |
Re: Could you use something [like this](http://www.daniweb.com/software-development/csharp/threads/196832/httpwebrequest-help#post888387) and change the method to "POST"? | |
Re: Every time some foreign code references your new library, it would need to change all of it's class names (instead of just dropping in a new DLL). If there is any Marshalling back to native code, it could be catastrophic without a full rebuild. | |
Re: Is h NULL? How are you creating your BankAccounts object before it is passed? | |
Re: How about something like this?: using System; using System.Text.RegularExpressions; namespace DW_419823_CS_CON { class Program { private static string MakeDashes(string strPhrase) { return Regex.Replace(strPhrase.Replace(' ', '/'), @"[a-z,A-Z]", "_"); } static void Main(string[] args) { string strPhrase = "this is neat"; Console.WriteLine(MakeDashes(strPhrase)); } } } | |
Re: You could modify your code to work like this: letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o', 'p','q','r','s','t','u','v','w','x','y','z'] name = "bbb" i=0 j=0 k=0 blnFound = false for i in 0..25 do for j in 0..25 do for k in 0..25 do trying = letters[i]+letters[j]+letters[k] if trying == name blnFound = true puts "matched" puts … | |
Re: So, you want one Regex to be applied to multiple files? | |
Re: When do you increment **n** ? | |
Re: What compiler are you using? Is putting the objects in a sortable collection and then converting that to an array an option? | |
Re: I, personally, would create another function and pass both the pointer to the original string, a desired starting point and a desired length (just like the parameters of a substring function) and return a result that is the array of characters between the start value and the requested length. | |
Re: When you say form, do you mean Windows Form? | |
Re: So, what you're really asking is if you can add a string array to a list of string arrays? Did you call new on your "Variables" instance? Variables myVars = new Variables(); // Can you step through this in the debugger and tell the exact line where the exception is … | |
Re: Make sure your file is always in the same directory (in debug or release mode). Give the full path to the file instead of a relative path. | |
Re: [Dynamic Link Library (Wikipedia)](http://en.wikipedia.org/wiki/Dynamic-link_library) says more than I ever could about DLLs. | |
Re: [Check this](http://www.blurtit.com/q137549.html) [and this](http://www.bing.com/search?q=difference+between+keyword+and+reserved+word&qs=SC&form=QBLH&pq=difference+between+keywords+and+reser&sc=1-37&sp=1&sk=) | |
Re: Can you do your calculations before the data hits the DataGridView? If you just wanted raw totals of lines, wouldn't it be easiest to access that data before it is in "display" mode? | |
Re: They are probably referring to programs that: - work without user interaction - are extremely efficient. (subjective statement) - work in a non-displayed (or minimally displayed (logs and debug output)) fashion - communicate with data repositories and ensures the availability of resources - possibly work in a machine-to-machine operation Rather … | |
Re: That will not work. Are you trying to just send a mail message? ...or do you specifically want to start a browser and have it start a mail session or something else? | |
Re: Do you need to ad a **.value** to the end of it? | |
Re: Depending on your language, could you use something like this?: valstring = "[contains(title, " + txtSearchVal + ")]"; | |
Re: I would make all of the dot net languages use using instead of Imports. Also, I would put IntelliSense back in C++ (for dot net). | |
| |
Re: 1) This sounds like something that should be a console app, not a WinForms app because it reports TO you (so you should not need to prompt it). 2) The System.Xml.Linq namespace would be much better for this than using COM automation. 3) I would imagine (since the files are … | |
Re: Looks like fun. What's your best language? | |
Re: Well, it first seems like you need your choices inside of a loop, so when you want to repeat, it will actually repeat. Also, there should be # marks in front of your include statements. Remove the word "for" from right inside main (or complete a for loop) I made … |
The End.