43,549 Solved Topics
Remove Filter ![]() | |
I am working on updating a database where some measurements are stored as text. The updates I'm making are to let the engineers that use it convert their measurements into different units. Long story short, the numbers must be kept as text for a couple reasons that I won't go … Software Development display microsoft-access visual-basic | |
Hi, I am a tester and new to python. The code in bold should execute only if the webpage has the text 'BUILD COMPLETE'. This text is between the <th> tag and this is found using DataParser class. [CODE] URL = "http://11.12.13.27:8080/cruisecontrol" from urllib2 import urlopen from HTMLParser import HTMLParser … Software Development python | |
I'm writing Conway's game of life for a school assignment. I have a text file with coordinates of the initial locations with bacterium. All I need to know is how to tell java to compare a coordinate in the matrix to a coordinate from the file. The pairs are listed … Software Development java | |
I will order Visual basic 6.0 soon and I wonder what the differences are between the Professional and the Enterprise package? It is crucial that the OLE tools and the "Package & Deploy Wizard" are included. Are these tools included in both the packages? Software Development visual-basic | |
i need help, for some reason i cannot remove items that i have added to my JPanels the welcome.remove will is causing a problem [CODE]// The "RunescapeCalc" class. import java.awt.*; import hsa.Console; import javax.swing.*; import java.awt.event.*; import sun.audio.*; import java.io.FileInputStream; import java.math.*; public class Game1 extends JFrame implements ActionListener { … Software Development audio gui java java-swing | |
As you probably know, Shell sort is typically written with a base of insertion sort, as shown below: [code]for (ctr = numGaps - 1; ctr >= 0; ctr--) { k = gapSeq[ctr]; /* Insertion Sort Begins Here */ for (j = k; j < size; j++) { tmp = array[j]; … Software Development c | |
Hi, I have a dataGridView that has 2 columns called (style & type) and I want to have a click event that only fires on the (type) column. I can code it so it works on both but for my app that is a little untidy. I have searched a … Software Development | |
I cannot seem to get the array to work and display the second and third loans, only the first one displays. Here is what I need to clarify the situation. I added the array to the program and it only works for the first loan. Can someone point me in … Software Development java | |
Since Visual Basic 2008 Express Edition have no Crystal Report template included. Is there Other way to show Report/Log data similiar way? Maybe by MS Excel? Or MS word? Any hint or Idea will be wellcome^^ many thanks. Software Development vb.net visual-basic | |
Hi, I have a string and set (I not really using a set, it cud be a arraylist or array of string) I want to have the following results: {A, B} If I have any character that does not contain in the in the set then just concat(concatenate)them to the … Software Development | |
hi every one; i saw this question and im trying to solve it.\ baseically i have to matrix's which each element is afraction so i must declare a class that has in the privet to float members numerator and denomnator and in the public i have constructer function to inilize … Software Development c++ | |
i am trying to create a videogame but im having trouble moving a picture. what im trying to do is move a picture called mario left, right, down, up... im trying to use the arrow keys... i dont have much experience either. everytime i press the up key the picture … Software Development visual-basic | |
I have binded a textbox to a column in a SQL Server 2005 Database, when i fill the dataset it displays the data, but when i click the save button it doesn not save the changes to the database. I used this same code to do a Datagridview and it … | |
Okay, so I've been looking at this for quite some time. I think I know what the problem is, but my C++ skills are sad a best due to stuff like Java, C# and VB. So, I'm trying to pull information from the registry, and I have no problem getting … | |
Given the following declaration and definition char a[20]; and using only pointer notation, write a program to read characters from the keyboard to fill the array and print them out. Software Development c++ | |
In my ToolstripMenu, there's an item called Info, when u push that Item, i want a new firefox/internetexplorer/... form opend. The link is [url]http://www.jiict.be[/url]. I can't use linklabels, but i can't figure out code to past in the clickevent... Any suggestions? (would like to use the menutoolstrip...) Greetings.. Software Development | |
i'm stumped... i get strange results from string[10:] to get the last 10 characters from a string? the code supposed to rename a batch of file sequentially and the number of numbers needs to be consistent eg. 00001 - 99999 thanks for the help [CODE]import os x=0 for file in … | |
Hi all! Hope you well! I have an application, most of it done and all fanx to the good guys and daniweb! :) I am curently using the setup project in VS2008 to create an installer for the application. In my code on I have the following: public frmMain() { … Software Development microsoft-windows | |
After the user inputs idnum and password. If thats correct the loginwindow is suppose to minimize and the mainwindow is suppose to come up. The main window comes up but the login window wont go away. :icon_evil [U]login window[/U] [ICODE]http://i41.tinypic.com/15ceblf.png[/ICODE] [U]main window[/U] [ICODE]http://i40.tinypic.com/121v2bk.png[/ICODE] [U]my problem[/U] [ICODE]http://i43.tinypic.com/4sjvy0.png[/ICODE] [CODE] if (userName_login_window.Equals("1") && … | |
I have just started Python recently and for some reason, I cannot import anything on my computer. I can do it on the computer at my school, but not my laptop. This is the message I received when I tried to import the program "cTurtle" [CODE]IDLE 2.6.1 >>> import cTurtle … Software Development python | |
A small ferry company has just purchased a computer for its new automated ticketing system. The company director has asked you to design the new system to assign seats for each trip of the 50-seater ferry, which covers the route from Penang to Langkawi and back daily. The upper deck … Software Development java | |
I am working on a project where I am building a student object from student java class. The student.java class specifies a method of: [code=java] public void setCourses(ArrayList<Course> courses) { this.courses = courses; } [/code] So I have built the following two methods in my main.java class file: [code=java] public … Software Development java | |
Hey guys. Hope you all well. A quick question, how can I make a form change backcolors so that it appears almost like its 'flashing'. Basically what I am trying to achieve is making a form more visible and getting the attention of the user. I can imagine it must … Software Development | |
How should i handle click events of a JButton array i have frame containing 100 JButtons .I need to find out which one was pressed by the user[code]import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class Screen1 implements ActionListener , WindowListener { int i; JFrame scrfrm1; JLabel lblscr; JButton … Software Development java java-swing | |
Hi, I am trying to add multiple PictureBoxes dynamically at runtime using a loop but have come a little stuck. Here is the code I am working on:- [CODE] XmlDocument xDoc = new XmlDocument(); xDoc.Load(System.IO.Path.Combine(Application.StartupPath, "getPublicPhotos.xml")); XmlNodeList photo = xDoc.GetElementsByTagName("photo"); for (int i = 0; i < photo.Count; ++ i) … Software Development xml | |
hi there!!! having trouble here, i have this main form and a password form, whats happening is that when i run my program my main form is dispalyed same with password form, (its on top of the main form), what i want is that my menustrip in the mainform to … Software Development | |
I've created a class PulldownArray, which contains two strings Value and Description. I created an array of this class called PulldownTABLE with the ArrayList^ command in my main program and I then populate it with the .Add method. All this works fine. How do I retrive the Value and Description … Software Development c++ | |
Hey you guys. Im doing c code where i have to make a file full of double values and then make another empty one because im going to write into that file. It does compile but i get this: Enter the input file name: randomfile.dat Enter the output file name: … Software Development c file-system | |
Hmmm...I completed my console hangman game last night and it was working fine. I got up this morning and fiddled with it a bit and must've done something I was unaware of and slightly broke the program's ability to recognize either the answer guessed was correct or not. It prints … Software Development c++ | |
Three one questions about releatie in MySQL with Visual Basic 2008. How can i use Mydatapter1 over again and over agian (see code)? So that i can fill [COLOR="Green"]three datasets[/COLOR] I want to fill three datasets with tree different tables and use them in my program [CODE] myCommand1.CommandText = "select … Software Development vb.net visual-basic | |
I closed out the other post I had "fill 2d array". The assignment is to read in a file to a 2d array that has the month #, high temp, low temp for each month. Then calculate the aver high and aver low and give the highest and lowest temps. … | |
Hi all I have a txt file. It has a maximum of 24 lines. E.g. Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 ... Line 24 I would like to delete lines 2, 4, 6 ... 24. All the even numbered lines this is the code … Software Development python | |
I understand that this means I'm using more memory than is available to the JVM, but I'm not sure why or what to do about it. The purpose of the program is to simulate an item in a store that is being tracked with a bar code id number (or … Software Development java motherboards-cpu-ram | |
For the sake of readability, I've been trying to do something like this: [CODE]#define initialize(x)(type x = initfunction()) int main(){ initialize(example); example.item = 0; return 0; }[/CODE] where type is a typedef'd struct, and initfunction() generates one, inits values, and returns it. My problem is, I get these errors: warning: … Software Development c | |
I have a problem. Im working with a picturebox and a combobox. I have an image on a picturebox and then i create graphics over a picturebox depends on the combobox item selected. When the selected combobox item change needs to clear the graphics of the picturebox but the image … Software Development | |
Hi, we have all seen hashtable with a values of string but I want to make a hashtable that accepts the value as an arraylist,and add items to that array,delete from it, how can I do that and is it possible? thank you Software Development | |
Hey guys I'm having a lot of trouble getting this program to work. I want to keep an inventory of different tools using a random-access file that shows the name of the tool, how many of each tool I have on hand, and the cost. I then want to put … Software Development c++ | |
I cannot seem to get the array to work and display the second and third loans, only the first one displays. Here is what I need to clarify the situation. Can someone help me out please. Modify the mortgage program again. Remove the amortization table. This time enter 3 different … Software Development java | |
help me plz , write a java program that reads a number and verifies if it has the same value when we read it from right to left and from left to right. my program should display "having the same value so it is readable from both sides" if the … Software Development java | |
Hi there, quick (and I am sure) simple question on a program I have just created. here's the code: [CODE]#include<iostream> using namespace std; int main() { char letter; int counter=0;//set the counter to 0 for (letter=65; letter<=122; letter++) {if ((((((letter==91)||(letter==92)||(letter==93)||(letter==94) ||(letter==95)||(letter==96))))))continue; counter++;//increment the counter in the loop if (counter==27)//counter condition … Software Development c++ | |
I'm trying to find the linenumbers of a webdocument i load using urllib2. I'm trying to do this like this: [ICODE] document = urllib2.urlopen(url,'r') page = document.read() for index, line in enumerate(page): print index [/ICODE] This however, prints out the index of every 'character' instead of every 'line'. How could … Software Development python | |
Not sure this is the right place to put this. I have a batch file for a program that I'm writing, which takes a C source file, compiles it and runs it, and then tries to save the output of it to a .txt file. The program lets a user … Software Development file-system shell-scripting | |
Hello I'm using an access database for a school project. The point is to get info out of a tag (stored in database). There's a path of a picture stored in the database. When i want to get it out, everythink works. But as soon the picture is displayed and … Software Development | |
hi.. I'm new in VB, and I have a project to activate LED from VB, but the data from VB should be send first to microcontroller (I am using ATmega8535). so in simple way I suppose to activate the LED, yhe input is from VB, but it must be through … Software Development visual-basic | |
Hello guys, My problem is that my code will automatically go through: [code]if((ask[i].getPrice()) <= (buy[j].getPrice())){[/code] where ask and buy are vectors. I need to know how I am suppose to compare them based upon the getPrice()...... Thanks in Advanced. The rest of the code is here: [code] int i=(int)ask.size(); int … Software Development c++ | |
Hey all, I've elected to write a console hangman game and I've completed it just fine. However, one thing is evading my logic as to why it wouldn't work. I want it to "appear" to LOAD GAME" at the beginning like so: "LOADING GAME....." The total wait time I want … Software Development c++ | |
I use [CODE] Shell("explorer Path")[/CODE] Path is Directory But it Open My Document Path is D:/ I think It because The syntax "explorer Path" i try a lot like shell("explorer" path), shell(explorer path) , shell(""explorer" path") but it always open My Document Software Development vb.net | |
Hello Is there a way to get data from the db with ConnectStudentDAO and populate the StudentBean.java and then copy the bean over to the model (Student.java) Is this how it is done. I'm not sure how to work out the Cast error. Thanks [b]LoginInfoBean.java[/b] [code] public String loginAction(String newUser, … | |
hi, i work on windows application and i have this code: [CODE] SqlCeDataReader rrs; SqlCeCommand comd = new SqlCeCommand("select CodePersonne from Table1 where DateR ='" + DateTime.Now.Date + "';", conne); rrs = comd.ExecuteReader(); [/CODE] while running, i get this error: The data type is not valid for the boolean operation. … Software Development | |
hi everyone can u please correct the errors in these codes? [CODE] // Testing the Stack class of the java.util package import java.util.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class StackTest extends JFrame { public StackTest() { super( "Stacks" ); Container c = getContentPane(); final JLabel status = new … Software Development java java-swing |
The End.