- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 5
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
39 Posted Topics
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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; | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: > 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 … | |
Re: 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 … | |
Re: 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);'? | |
![]() | Re: 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? … ![]() |
Re: 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. | |
Re: 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? | |
Re: 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 | |
Re: 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? | |
Re: 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(); } | |
Re: 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 … | |
Re: 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 … | |
Re: > 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 … | |
Re: Have you consider using the between keyword? SELECT columns FROM tables WHERE column1 between value1 and value2; | |
Re: 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. | |
Re: 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 | |
Re: Hi mark, Line number 38. Increment your Row with i instead of inc. Regards, Wen Cai | |
Re: 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. | |
Re: 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. … | |
Re: 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 … | |
Re: 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. = ) | |
Re: > 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 * … | |
Re: 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! … | |
Re: YouList.Add(Value) to add item. Then use a loop to sum the value of your item. | |
Re: > 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. | |
Re: 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. | |
Re: What seems to be the problem? I copied the code and it runs. | |
Re: 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 … | |
Re: 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 … | |
Re: 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++; > … | |
The End.