- Strength to Increase Rep
- +13
- Strength to Decrease Rep
- -3
- Upvotes Received
- 128
- Posts with Upvotes
- 113
- Upvoting Members
- 85
- Downvotes Received
- 9
- Posts with Downvotes
- 9
- Downvoting Members
- 9
Delphi and C# Programmer
- Interests
- Programming, Animation, Sport, Travel, Music, TV, Movies, Gaming
Re: Much love and respect to all my friends on DaniWeb. :) | |
Re: Syndicate which was released earlier this year in the US was banned here in Australia as it failed to receive an MA15+ rating (we are yet to have an R18+ here, although it just passed Parliament today and is heading for the Senate for the final debate, but I digress...) … | |
Re: The problem with your method is that the size of your array doesn't change. I would do this in your remove method: 1. create an array of size (original array size -1) 2. go through the original array one at a time. 3. If the index doesn't equal the index … | |
Re: Hi there primbech and welcome to Daniweb, What specific difficulties are you having with your pst editor? Maybe post some of your code and we will try to help. :) | |
Re: I'm afraid I'm no C++ guru, but I can probably compare C# and Java: Some similarities: - both have system garbage collection (C++ does not - you have to allocate and deallocate memory for objects). - both have strict compiler conditions which are checked such as array indexes, initialisation of … | |
Re: [code=java] for (int i=0; i<n; i++) [/code] [code=java] int i=0; (while i<n) [/code] These two pieces of code are equivalent loops. But the while loop needs n steps to execute because the initialisation of i occurs [I]outside[/I] the loop. The for loop requires n steps [I]+1 to instantiate i[/I] inside … | |
Re: When you say it's not working, do you get an error message? | |
Re: The easiest way to do this is to extend JPanel and override the paintComponent method. When you override the paintComponent method, you should do the following: [code=java] public void paintComponent( Graphics g ) { super.paintComponent( g ); Graphics2D g2d = (Graphics2D) g; // use g2d.drawImage methods to paint your background … | |
Re: AleMonteiro is correct, it should be `CommandType.Text`. You need to modify your `CommandStr` variable to be valid SQL. Something like `string CommandStr = "SELECT F_Get_Desc(@PDesc)";` and then you reference the parameter as `@PDesc` like so: OracleParameter pDesc = new OracleParameter("@PDesc", OracleDbType.Varchar2,128); | |
Re: Once you have read the file into memory, you should be able to write each line out to the console. If you search for the `Console.WriteLine` function in your favourite search engine you will find plenty of examples. Good luck! | |
Re: I believe that IS the test. Just go through each of those 20 items and score yourself a 0,1 or 2 as the dude has said. BTW I scored a 4 which I don't believe makes me saintly, just not psychopathic. | |
Re: ExecuteScalar always returns a single value, so you should use it on any query that is expected to return a single record, single field result set. It's represented as object because its unknown what the correct data type should be but should be converted to whatever data type you expect. … | |
Re: I haven't used telerik specifically before but I wanted to mention that there is absolutely nothing wrong with using a third party to solve outstanding problems with a project. Sometimes it is just more cost-effective (not just in dollar value) to purchase another company's tools rather than trying to solve … | |
Re: Looks like your professor has given you a fairly good start on what needs to happen inside that for-loop. Did you have a question that you needed help with? | |
Re: I'm not sure what you mean by the first question, but I can answer the second. An abstract function is one that defines a method signature without its body so that it can be overridden in any extending implementing class. I'm not sure which programming language you are using but … | |
Re: Certainly being able to parse file input into something meaningful is always useful. To make it even more generic, why not use a Stream input instead? That way you can handle any input type (including files, via FileStream) so long as the format is what you expect. | |
Re: In C# a bool method always returns a boolean value. In other languages such as PHP this is not necessarily the case, but since this question was in regards to C# I will answer as such. I think your question is about personal preference so there isn't really a right … | |
Re: Hi theausum, Two things: Firstly, please use code tags when posting code. It really does make it a lot easier to read. Secondly, did you have a question? | |
| Re: I would suggest moving the required method to a third dll if possible and referencing that dll from both of your existing projects. |
Re: Either set them to public or pass them in via the constructor. A third option is to have get public but set private. The syntax for this option is as follows: public char suit { get; private set; } public char value { get; private set; } public Card(char aSuit, … | |
Re: Hi nish123, You will need to use two function calls for this, strtotime and date. First you use strtotime to convert your string to a unix timestamp, like so: [code=php] $time = strtotime( $date ); [/code] Then you use this timestamp to calculate a date in whatever format you want. … | |
Re: Without seeing your code it's a bit difficult, but there are some general rules you will need to be aware of when running in a multi-threaded environment. For example, you will need to exert caution when sharing data between threads. Is the callback to your button click waiting for a … | |
Re: Are you able to run in the IDE debugger and see which line throws the AV error? | |
Re: I don't think you want to close the session in login.php using the call to session_close_write. Also, your session setting is commented out, you will need to set each $_SESSION variable before calling cms.php. Just a side note on your SQL, you should consider looking into parameterised queries. Your code … | |
Re: Use the SelectionStart and SelectionLength properties to select a particular part of the text and then apply formatting to it. Example: richtextbox1.SelectionStart = 30; richtextbox1.SelectionLength = 10; richtextbox1.SelectionAlignment = HorizontalAlignment.Left; will align the substring starting at index 30 of length 10 to the left. I'm not sure how multiple alignments … | |
Re: Hi Ahmed_51 and welcome to DaniWeb So, p is principle, r is rate (in percentage) and n is number of years of the loan. I'm not sure I follow your calculation, but I would think it would be something like (principle x rate x number of years) / (number of … | |
Re: Your SP has 4 parameters - @Call_LogID, @StarDate, @EndDate and @Log_code and none of them have default values specified but you are only setting 2 in your C# code - @StarDate and @EndDate. You will need to also pass @Call_LogID and @Log_code to the SP if you want to execute … | |
Re: Depends on the type of database engine being used, but if you mean MSSQL then there are a lot of tutorials and sample code on the subject. For example, [this one](http://www.codeproject.com/Articles/4416/Beginners-guide-to-accessing-SQL-Server-through-C) describes the process in detail. Otherwise, try google search for "C# SQL Database". |