1,443 Posted Topics
Re: Can you convert the Table<Travel_MealDetails> to a List<Travel_MealDetails> before running the Linq? Also (after that), your linq can just return a List<Travel_MealDetails> [CODE] return (from c in lst_meals select new ... ).ToList(); [/CODE] ...you won't need to call .ToList() twice. | |
Re: Try a search [URL="http://www.bing.com/search?q=VB.NET+to+SQL+Server&qs=n&form=QBLH&pq=vb.net+to+sql+server&sc=0-14&sp=-1&sk="]like this[/URL]. There are lots of examples. | |
Re: Look at the example on [URL="http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html#test"]testing the connection[/URL]. Just look at the code inside main() and you will see the pattern emerge. | |
Re: What happens if you test that theory on a String? | |
Re: Are you positive "price" is coming back in your DataReader? | |
Re: Is there no StringBuilder? | |
Re: @eoop.org: If you first learn how to make the text editor, you can move on to making more complex things like the word processor (WP). Yes, these things take time and you can enhance your programming skill with even the text editor example. What will be the difference between your … | |
| |
Re: I compiled this with Visual Studio 2010 and ran it 10 times. I got the same result in debug and release modes. 100.000000 What compiler did you use? | |
Re: I would open a stream to the URI either using a WebClient .OpenRead() or using the HttpWebRequest. See [URL="http://www.daniweb.com/software-development/csharp/threads/407212"]this post[/URL] for the latter. | |
Re: Have you started [I]any[/I] of this? The rules don't allow us to post full solutions. When you say you don't know where to get started, do you mean with the design of the program or the actual syntax of C++? | |
Re: We would first need to know the name of the columns containing the employee information and the customer information. I assume the employee table has a customer column or vice-versa. ...or there is a third table containg customer and employee IDs. ( ? ) | |
Re: Is the C# project a Class Library or in a public class? | |
Re: If you're trying to connect a SQL database to a Silverlight app, it's my understanding that can't be done. Am I off-base? What I've [I]heard[/I] is that you would need to call to WCF or Web Services to get the data. | |
Re: Have you seen [URL="http://www.c.happycodings.com/Sorting_Searching/code5.html"]this[/URL]? | |
Re: Although this is not [I]really[/I] spam, the site at the link is full of banner ads. The content is [B]hard to read[/B] and [B]outdated[/B]. Do you have an updated version of something like this? | |
Re: You might just need to push the individual characters as their [URL="http://www.w3schools.com/tags/ref_ascii.asp"]HTML ASCII[/URL] equivalent. | |
Re: What if the [URL="http://www.cplusplus.com/reference/clibrary/cstring/strcmp/"]return value[/URL] from strcmp is -1? | |
Re: Looks like fun! What help do you need? What part is not working? | |
Re: I tried it like this; where I converted a managed string through MFC to native to STL and back to managed. [CODE] #include "stdafx.h" #include <iostream> #include "DW_414826_CPP_MIXED.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // The one and only application object CWinApp theApp; using namespace std; using namespace System; int … | |
Re: Did you see this?: [url]http://www.daniweb.com/software-development/cpp/code/216820/968600#post968600[/url] | |
Re: Have you tried this as a stored proc? It seems as if it should run better than 13 seconds -- especially since the other runs quickly. I would also want to know if you ran each half as a separate query, which one would take longer. I also assume the … | |
Re: MessageBox.Show(); You can convert your numbers to one giant string to concatenate them into something that will show in a MessageBox. | |
Re: SQL Server comes with an Import/Export wizard, would that help? Is this going to be a one-time thing? | |
Re: I first have to ask if it is necessary for you to work at such a low level. It has been a long time since I worked at the network level to perform database operations and I've never thought to do this in C#. Do you control both the client … | |
Re: Is that control a label or a Rich Text Box? Do you have some other type of character set in use? Did you loop through all of the characters and show the ASCII values of what it [I]did[/I] find? I just tried this and it worked (with a Rich Text … | |
Re: What events are called when you click on the button? | |
Re: How about?: [CODE]While (RandomOutput3.Equals(RandomOutput) Or RamdomOutput3.Equals(RandomOutput2))[/CODE] | |
Re: [url]http://www.vb6.us/tutorials/vb-string-array-functions-split-join-filter[/url] | |
Re: I'm confused. You want to change the name of the variable based on the contents of the variable? | |
Re: Can you show/tell your solution so others can see it? | |
Re: [QUOTE=syd919;1769113]I really need someone to show me how to call the method that returns a string list[/QUOTE] To get a list of strings, change this: [CODE]public List<Contact> getNames()[/CODE] to [CODE]public List<string> getNames()[/CODE] ...or am I missing the point? but you don't need to call ToList() twice [CODE] public List<string> getNames() … | |
Re: Where is the question (or question mark)? Since it is not expected for us to deliver full homework solutions, what question did you have about this? Which part is giving you a problem? | |
Re: Do you know anything about Regular expressions (Regex) or substrings? [CODE] Module Module1 Sub Main() Dim strThingToFind = "abc" Dim strData As String = "there once was an abcklm in the basement" Dim intOffset = strData.IndexOf(strThingToFind) If (Not (intOffset = -1)) Then If (strData.Length > ((intOffset + strThingToFind.Length) + 3)) … | |
Re: If you're talking about the open-with-list, it's in the System Registry. \HKEY_LOCAL_MACHINE\Software\Classes\*\OpenWithList If you're familiar with Registry Editing, you can make the addition of the key there. | |
Re: There are a few tools to do that, but the first thing you should do is see that you are deleting any dynamically created variables when they are no longer necessary. | |
Re: [CODE] Dim Regex As New Regex("\w+:\w+")[/CODE] First: Regex is a reserved word, so it should not be the name of the variable. Also, if you're going to use "Split", you do not [I]need[/I] to use a Regex. If you are going to use Regex, you do not need to use … | |
Re: Hint: Do it in your constructor. | |
Re: Did you try a double percent? %% | |
Re: [CODE]if(big>pdata[n])[/CODE] Are you saying here: if "big" is greater than the number in the array, then [B]replace it[/B]? [After that] Are you going to free the data allocated on line 10? | |
| |
Re: [url]http://en.wikipedia.org/wiki/Sparse_array[/url] If you read that definition, do you consider [B]half[/B] as [B]most[/B]? If so, the answer is obvious. | |
Re: Standard current best programming practices now suggest we break up code into "chunks of functionality" -- grouping sections of code by action into separate functions. Surely in 48k of code, you can see certain: 1) cepeating groups of commands 2) pieces of code that can operate independently 3) code that … | |
Re: Can you show/tell your solution so others can see it? | |
Re: Can you show your solution so others can see it? | |
Re: Be sure to check the length of the string to make sure it's at least 3 characters (or whatever size of the substring). | |
Re: Are there any spaces or anything that keeps it from being just "1"? Did you .Trim() it? Also, did you look at the value that was returned [B]in the debugger[/B]? | |
Re: What type of database? Does it allow the DESCRIBE or DESC command to be used on a table? |
The End.