Posts
 
Reputation
Joined
Last Seen
Ranked #135
Strength to Increase Rep
+13
Strength to Decrease Rep
-3
93% Quality Score
Upvotes Received
128
Posts with Upvotes
113
Upvoting Members
85
Downvotes Received
9
Posts with Downvotes
9
Downvoting Members
9
46 Commented Posts
~416.28K People Reached
About Me

Delphi and C# Programmer

Interests
Programming, Animation, Sport, Travel, Music, TV, Movies, Gaming
Favorite Tags
java x 397
php x 309
mysql x 96
mssql x 71
c# x 41
Member Avatar for The Dude
Member Avatar for shanaka95

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...) …

Member Avatar for Andrew_107
0
309
Member Avatar for mattyd
Member Avatar for Xeros606

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 …

Member Avatar for JamesCherrill
0
3K
Member Avatar for umadas

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. :)

Member Avatar for Vladan
0
3K
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for mayur_5
0
3K
Member Avatar for Rose Aashii

[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 …

Member Avatar for Ali_84
0
2K
Member Avatar for manisha
Member Avatar for k2k

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 …

Member Avatar for JamesCherrill
0
14K
Member Avatar for anamo

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);

Member Avatar for darkagn
0
262
Member Avatar for Joe_16

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!

Member Avatar for darkagn
0
248
Member Avatar for The Dude

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.

Member Avatar for maydhyam
1
5K
Member Avatar for zachattack05

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. …

Member Avatar for zachattack05
0
319
Member Avatar for overwraith

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 …

Member Avatar for overwraith
0
287
Member Avatar for nlanka

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?

Member Avatar for nlanka
0
178
Member Avatar for Lgie

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 …

Member Avatar for darkagn
0
124
Member Avatar for overwraith

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.

Member Avatar for ddanbe
0
246
Member Avatar for zachattack05

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 …

Member Avatar for JOSheaIV
0
534
Member Avatar for theausum

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?

Member Avatar for Pramod_7
0
3K
Member Avatar for lithium112

I would suggest moving the required method to a third dll if possible and referencing that dll from both of your existing projects.

Member Avatar for lithium112
0
121
Member Avatar for Suzie999

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, …

Member Avatar for Suzie999
0
254
Member Avatar for nish123

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. …

Member Avatar for Aswad_1
1
8K
Member Avatar for Amr_Mohammad_R

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 …

Member Avatar for darkagn
0
175
Member Avatar for Luiz Eduardo
Member Avatar for darkagn
0
348
Member Avatar for engrjd91

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 …

Member Avatar for darkagn
0
238
Member Avatar for kidkardel

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 …

Member Avatar for kidkardel
0
233
Member Avatar for pritaeas
Member Avatar for Ahmed_51

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 …

Member Avatar for tinstaafl
0
548
Member Avatar for syahirah_1

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 …

Member Avatar for syahirah_1
0
244
Member Avatar for Sifiso21031085

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".

Member Avatar for Mohit_5
0
212