Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
77% Quality Score
Upvotes Received
7
Posts with Upvotes
7
Upvoting Members
5
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
1 Commented Post
4 Endorsements
Ranked #397
Ranked #686
~22.9K People Reached
Favorite Forums
Favorite Tags

39 Posted Topics

Member Avatar for Iamkenny

What is the problem you encounter? cmbDescrip is the combo box where you select and depending on its value will change cmbProduct combo box right? You mention category combo box but I do not see it but I do see description combo box thus the assumption. Private Sub cmbDescrip_SelectedIndexChanged(ByVal sender …

Member Avatar for Mai Phương
0
1K
Member Avatar for ncis_sg1

After you print out your values, just print out the menu, then get the user value from the input device. With the value taken, you can use a if statement or a switch statement to do subtraction or addition to the first two values or quit the program.

Member Avatar for ncis_sg1
0
4K
Member Avatar for mcmanuel20
Re: HELP

What is your problem? It does not help us if you just put the heading "HELP" and a bunch of code. Let us know what your problem is and we will try to help out.

Member Avatar for JamesCherrill
0
153
Member Avatar for jalpesh_007

If I were to guess where you get your index out of bounds error it would be on line 38. Your initial pass through your 2nd while loop will be fine as you have set your col value to zero but once you finish that 2nd while loop, the value …

Member Avatar for JamesCherrill
0
403
Member Avatar for sanket044

Try the sql below: select (SELECT sum(GoodsRcpt.PurchQty) FROM GoodsRcpt where GoodsRcpt.GlsClr=" WHITE") - ((SELECT count(Prescriptions.SrNo)/2 FROM Prescriptions where Prescriptions.GlsClr=" WHITE") + (SELECT sum(GlassDamage.DamageQty) FROM GlassDamage where GlassDamage.GlsClr=" WHITE")) AS result;

Member Avatar for sanket044
0
109
Member Avatar for renzlo

If it is just to view the data there is not much problem. However, if multiple user is trying to modify the data then we can use transaction which will lock the data. Do becareful when using transaction as it can affect the performance.

Member Avatar for renzlo
0
348
Member Avatar for Beginner20

That depends on what you want to do. Can you do a search without any of the checkbox being checked? If you can then you can enable the button else only when one or more of the checkbox is checked will you be able to click the button.

Member Avatar for M.Waqas Aslam
0
149
Member Avatar for king03

You can store your username and password in your database and retrieve it and do a check. Or if you this is one of those project where you just want to test functionality, you can always hardcode your username and password and do a check. That all depend on what …

Member Avatar for king03
0
108
Member Avatar for Valiantangel

Sir, constructor does not have a return type. What you have there is a method instead of a constructor. From what you have writen, I think you are looking for an array of boolean with the size of the array as your parameter. It also mention that your default value …

Member Avatar for JamesCherrill
0
854
Member Avatar for hoopd505

> coord2 = "X-value and Y-value: " + /n (xmin + (x - 0.5)*w) + "and" + 4*(xmin + (x - 0.5)*w); I think what you meant is "coord2 = "X-value and Y-value: \n" +(xmin + (x - 0.5)*w) + "and" + 4*(xmin + (x - 0.5)*w);"? your /n is …

Member Avatar for wen_cai
0
253
Member Avatar for JavaPadawan

Can you explain your version of a selection sort? From what I can remember is that selection sort goes through the list to find the smallest value and swap the value with the current pointer value. If you are having the same understanding as me. I think you need is …

Member Avatar for wen_cai
0
229
Member Avatar for awesomeriley

When you call a function, you do not but a space between the function name and the open bracket. Look at your printf function. You call it without the space 'ex: printf()'. So, why do you put a space for your own functions 'ex: getRandomNumbers (int aryData[], int size);'?

Member Avatar for deceptikon
0
182
Member Avatar for sammoto

This is because your x variable does not change and you are using variable x is your condition for your while loop.I think you want to update the x variable instead of the x0 or x1 variable or maybe do your condition base on the value of x0 and x1? …

Member Avatar for sammoto
0
241
Member Avatar for Cross213

Either you can use an if statement to check if the element you are retrieving is null or you have to keep a record of the size of the populated array for your condition of the loop instead of the size of the array.

Member Avatar for Cross213
0
304
Member Avatar for LuisJ

OH MY GOD!! Spanish!! I have no idea what this piece of code do. Can you explain what it is you want to do? And maybe translate it to english so I can understand your code?

Member Avatar for JamesCherrill
0
199
Member Avatar for sundog1

You can use OleDbDataAdapter instead of SqlDataAdapter Example: OleDbDataAdapter daTitles=new OleDbDataAdapter(); Then you create your dataset and use the OleDbDataAdapter to fill your dataset

Member Avatar for lolafuertes
0
268
Member Avatar for Valiantangel

You want an explaination of the Sieve of Eratosthenes algorithm and square root of n upper limit algorithm or the code for both those solutions?

Member Avatar for TrustyTony
0
122
Member Avatar for TIM_M_91

If you have to keep the for loop. Consider the code below. for(int i = 0; i < row; i++){ for(int j = i; j < row; j++){ System.out.print("X"); } for (int z = 0; z < i; z++){ System.out.print("O"); } System.out.println(); }

Member Avatar for wen_cai
0
103
Member Avatar for KushMishra

WPF applications are stateful. Many WPF applications typically use WCF backends, and in this case state/session is managed through the service. So if you have multiple clients (with login capabilities) connecting to the same service, the service has mechanisms to identify each client and to maintain client-specific session state. There …

Member Avatar for pkumarSinha.399
1
2K
Member Avatar for cocofly123

What is your error? I have copied the code and it seems you have another class missing which is the buttonPlay object. Is this your error? If it is, declare your buttonPlay somewhere and you would fix it. If it is for your jpanel, create your button and add it …

Member Avatar for TrustyTony
0
274
Member Avatar for GeekTool

> just out of curiosity, why is your switch statement set up the way it is with 9 first then 10, 8, ... and so on? @corby: That is because he wants to increment the grade first. So, 9 and 10 belongs to A grade and he have a break …

Member Avatar for wen_cai
0
233
Member Avatar for mitmehta22

Have you consider using the between keyword? SELECT columns FROM tables WHERE column1 between value1 and value2;

Member Avatar for mitmehta22
0
114
Member Avatar for BryantFury

That is easy. Just set your head pointer to a null. But you will then have memory leak. So, if you want to avoid that, you have to travers the link list and free it then set your head pointer to null.

Member Avatar for BryantFury
0
122
Member Avatar for achava

A does not interpret as multiple. If you want to denote multiple occurance, use the '*' or '+' symbol. For more infomation, visit http://www.tutorialspoint.com/perl/perl_regular_expression.htm

Member Avatar for 2teez
0
302
Member Avatar for sundog1

Hi mark, Line number 38. Increment your Row with i instead of inc. Regards, Wen Cai

Member Avatar for sundog1
0
153
Member Avatar for sundog1

How about using a foreach loop? foreach (DataRow row in table.Rows) { item.SubItems.Add(row["name of the column of that row"].ToString()); } Hope this answer your question.

Member Avatar for sundog1
0
172
Member Avatar for Iamkenny

The sum function only return you 1 value. So the question is why do you need to use a group by? I am not sure if the sql works. As you are using a sum function, it will give you a new value in which you have not name it. …

Member Avatar for wen_cai
0
389
Member Avatar for shifat96

You said that totalwins, totallost, and totaldraw are instance variable, could you not call it in the method like object.getTotalWins? (I am assuming they are in the same class.) If they are not in the same class, could you not add those values into the method as they are passing …

Member Avatar for corby
0
5K
Member Avatar for crazymidget01

Have you try using generics? http://docs.oracle.com/javase/tutorial/java/generics/index.html Give this a go and if there is any problem, feel free to come back. = )

Member Avatar for wen_cai
0
174
Member Avatar for andy_m

> Probably becuase v2 is zero on line 24. Perhaps you should be setting v2 somewhere? He is right. You set a new v2 in your fep2 class. What you want to do is: EXCLotto(double a, double b, double c) { super(a, b, c); **this.v2** = a * b * …

Member Avatar for andy_m
0
140
Member Avatar for Valiantangel

First, '==' operator is not an assignment operator. It is comparison. Assignment operator is '='. Second, the if statement is used to set the first value as your smallest value since it has nothing to compare to, it will always be the smallest value in your random number. Have fun! …

Member Avatar for Valiantangel
0
87
Member Avatar for kiail

YouList.Add(Value) to add item. Then use a loop to sum the value of your item.

Member Avatar for kiail
0
97
Member Avatar for Nicky1224

> index = studentNames.indexOf(" "); Will return -1 if there is no match. Do a check on the value of index while trying to access data using the index value. It is surprisingly helpful as many programmers will overlook that variable assuming it to be true most of the time.

Member Avatar for sciwizeh
0
161
Member Avatar for SCass2010

From the code above, do you mean a constant? You can create a static class where you can just call MyClass.functionc(). You do not need to create a new instance of the class. If that is what you are looking for.

Member Avatar for SCass2010
0
436
Member Avatar for ippo
Member Avatar for ippo
0
152
Member Avatar for ippo

for (int i=0; i<6; i++) { //loop for # of lottery tickets Above will always print 6 tickets as you set it to 6. for (int i=0; i<numtix; i++) { //loop for # of lottery tickets This will print the number of tickets you need from the input of the …

Member Avatar for JamesCherrill
0
1K
Member Avatar for beforetheyknew

I am guessing you have already downloaded and install mysql on your computer. If you want to just display/access your database from Microsoft Visual Studio you can do the following steps: 1) Click on view, scroll to server explorer and click that. (Alt/shortcut: Press ctrl+w+l together to get it to …

Member Avatar for wen_cai
0
231
Member Avatar for dbsp

Umm... You are increasing the value of i everytime you go through a loop. > while (l < left.size() && r < right.size()) > { > if(right.get(r).compareTo(left.get(l)) > 0) > { > result.set(i,left.get(l)); > l++; > } > else > { > result.add(i,right.get(r)); > r++; > } > i++; > …

Member Avatar for wen_cai
0
823
Member Avatar for mancode1007

It would be great if you could post the error as with just one line of sql, I have no idea what you are doing wrong. Since you said that the sql works, I am guessing you did not add value into your parameter in your sql? Also, since you …

Member Avatar for wen_cai
0
166

The End.