43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for TIM_M_91

Hi guys I have successfully set up my database which through my GUI I am able to create my tables that i wish and insert data into the table. My problem is through that I can only insert one row of data into a table so what would I need …

Software Development gui java microsoft-access
Member Avatar for richieking
0
104
Member Avatar for birdlover2010

Hello, I am doing a simple calculator program. I have a combo box and assigned numerical values to a string variable under each case number using the same variable name. My problem is I don't know how to assign that value. When I use the current code, it pulls the …

Software Development vb.net
Member Avatar for codeorder
0
929
Member Avatar for Ahmed2

Hi there I've got a problem with functions, where it seems that function call return zero instead of the actual variable value, I will appreciate any help from you guys. I will post the major code parts because the program is big. I get the totallength variable value right but …

Software Development c++ ios
Member Avatar for Ahmed2
0
239
Member Avatar for KazenoZ

Hello guys, Well, here's a simple one for you, which I just could not find the answer to due to lack of finding a good way to put it in words for Google. I'm pretty much a newcomer to Java, first project I used Java for, actually, and it was …

Software Development java
Member Avatar for Zhoot
0
247
Member Avatar for Ahmed2

Hi there I'm trying to ofstream (output) data to an excel file (csv), and I keep getting this error "file was not declared in this scope". Can you guys help me on this? where is the error? This is the output function, [CODE]void FileOutput() { int t; static float totallength=0; …

Software Development c++
Member Avatar for Ahmed2
0
423
Member Avatar for Syrne

Hello all, I've been fooling around with some code trying to teach myself somewhat about Linked Lists. I wrote this quick program that creates a random number in each node of a list and asks the user to guess the number. I have a quit choice that, when executed alone …

Software Development java linked-list
Member Avatar for DavidKroukamp
0
219
Member Avatar for Sundown G

I post this thread in shell scripting too I want to search the user input in file (by lines) but not all then with this line search on another file ( with the specific line) and show to the user. Example: file1.txt ======= a aa aaa aab aac file2.txt (corresponding …

Software Development c shell-scripting
0
87
Member Avatar for javaprog200

Hello, The following program has three JPanels - one to hold the image, one for the JComboBox and the last one for holding the JLabel, JTextArea and JButton. Once a selection is made in the JComboBox, the user will enter text in the textarea and press the button. The button …

Software Development java java-swing
Member Avatar for javaprog200
0
248
Member Avatar for kalcio

hello, I need help for my code, I created an interface that contains a button and a JProgressBar with the netbeans interface, but I do not know how to change the color of the JProgressBar, I tried the method setBackground (Color.color), click right on the JProgressBar proprties Does not change …

Software Development java
Member Avatar for kalcio
0
2K
Member Avatar for zachattack05

Quick question. A few of the commercial/closed source applications I use contain an external exception handler or crash catcher and I am wondering if anyone has ever implemented something like this and would be willing to discuss the use of such a method of exception handling? Basically the way it …

Software Development monitoring-software
Member Avatar for Philippe.Lahaie
0
247
Member Avatar for kiddo39

Hi, I'm trying to run code that asks a yes or no question. If a yes or no isn't entered, then the question will continue to re-ask say every 3 seconds until a yes or no is entered. Here's the basics of it: [code] while True: response = raw_input(" Are …

Software Development python
Member Avatar for jeugtsy
0
669
Member Avatar for toomutch

Hi All, I have a vb net program that shows a datagridview which pulls data from a mySQL database. When the user clicks on a row (I am checking for a 'cellclick' event), a text box is filled with data from a hidden column in the datagridview. This works fine …

Software Development vb.net
Member Avatar for toomutch
0
250
Member Avatar for vlady

Hello, I am learning classes, and find it a bit difficult... :-( Mine intention is to add subject(predmet) and mark to the objet janko but if I search in self.predmety, I get False, means that it can't recognise predmet in self.predmety list State of self.predmety is as folloving: [<__main__.Cpredmet instance …

Software Development python
Member Avatar for vlady
0
92
Member Avatar for mohamed moamen

I'm study Compressing and Decompressing Data Using Java APIs from [url]http://java.sun.com/developer/technicalArticles/Programming/compression/[/url] but when i compile this example: [CODE] import java.io.*; import java.util.zip.*; public class UnZip { final int BUFFER = 2048; public static void main (String[] args) { try { String fileName = "your zip file" //but your zip file …

Software Development java
Member Avatar for mohamed moamen
0
337
Member Avatar for zachattack05

Simple question: is it a performance issue or bad form to have if statements without a else following? As an example, an event that is triggered when a listbox selected index changes depends on the selected index value to run, and during the change, the value switches from some integer …

Software Development
Member Avatar for zachattack05
0
1K
Member Avatar for shush0606

I am using C# on visual studio 2010. i have tried downloading a spreadsheet from yahoo by finding the location of the download and then using: [CODE] WebClient wc = new WebClient(); wc.DownloadFileAsync(uri, filename); [/CODE] for the example i tried taking apple as an example: [CODE] Uri uri = new …

Software Development apple finance visual-studio
Member Avatar for shush0606
0
120
Member Avatar for Zaad

Hi All; Im just making a simple Desktop app. Ive got a need so that the user could be able to add data to the table dynamically. Ive done implementing the table and also code for adding rows. Issue is after i add the row it is not displayng in …

Software Development java java-swing
Member Avatar for Zaad
0
1K
Member Avatar for dennysimon

hello all I use notepad++ to create my code I use dos command to javac the code some times when there is error in my code the the dos console shows many lines of error message my question is : if the error lines's message is 100 lines or more …

Software Development java
Member Avatar for dennysimon
0
168
Member Avatar for yongj

I'm teaching pointers to myself through my book and I'm stuck on one of the practice problems. Here it is: [CODE]//What is the output of the following C++ code? int x; int y; int *p = &x; int *q = &y; *p = 35; *q = 98; *p = *q; …

Software Development c++
Member Avatar for Eagletalon
0
184
Member Avatar for biojet

Hi all, I am trying to separe my data DNA because it has a lot of name. It has about 43 litte file in one data. I made the small script to solve one name of data but I did not succes. The result was not enough. My script is …

Software Development perl
Member Avatar for biojet
0
158
Member Avatar for atticusr5

hello all, I have a question about assigning variables values based on values stored inside an sql database. I have the connection part down, but here is my basic set-up. I have a table with the values {username, password, isAdmin}, where username and password are strings and "isAdmin" is a …

Software Development vb.net
Member Avatar for Reverend Jim
0
158
Member Avatar for Eternal Newbie

I have a DataGrid table like this: [img]http://ni8.upanh.com/b1.s24.d1/f869170161faa9e6ad2c272d6f66228e_40513398.capture.png[/img] How could I change the plain-looking arrows in the RowHeader into row number (Like 1,2,3...)??? Thanks for any help from you guys!

Software Development vb.net
Member Avatar for Eternal Newbie
0
218
Member Avatar for PF2G

Hi, i'm doing a school schedule and i have this: [URL="http://desmond.imageshack.us/Himg13/scaled.php?server=13&filename=22875721.jpg&res=medium"]http://desmond.imageshack.us/Himg13/scaled.php?server=13&filename=22875721.jpg&res=medium[/URL] as you can see i have the times on the first column and that is from table "tempos_letivos". now i have a "schedule" table where is the hours of class of the courses, but in this table the cod_prof …

Software Development vb.net
Member Avatar for PF2G
0
87
Member Avatar for Falcon25

Hello guys, I've recently come across this problem and have spent quite a bit of time trying to comprehend what the question is actually telling me to do :S [COLOR="Green"].If a, b, c are bool-variables, a is true, but b and c are false, write an expression that computes the …

Software Development
Member Avatar for Falcon25
0
148
Member Avatar for uurcnyldrm

Hi people, How can I put a JRadioButton wherever I want in a JPanel? I tried setLocation() but it did not change anything. It is still on the north-center part of the panel. I think I'm missing something, but I can't figure it out. Thank you in advance.

Software Development java
Member Avatar for NormR1
0
189
Member Avatar for programmer2112

So i need to create a win32 console program that basically asks a user to input certain information about random people...ie: height, shoe size, weight. after the user has entered the information for the first person, the user is then prompted to enter the same information for another person. eventually …

Software Development c++
Member Avatar for yongj
0
178
Member Avatar for iparkin

I recently ran the following command from the command line and it worked find . -name '*jrAPS*_ouput.log' -exec grep '<string expression>' {}\; -print I put it in a shell script like this and it did not work find . -name '*jrAPS*_output.log' -exec grep '<string expression>' {} \\\; -print the result …

Software Development shell-scripting
Member Avatar for borlam
0
572
Member Avatar for sharon.chapman7

Hi, I have a windows form with a "ComboBox" on it. The "ComboBox" has the words "Production" and "Development" in it. If the user selects "Production", I need my C# code to point to the Production database. If the user selects "Development", I need my C# code to point to …

Software Development client-server sql
Member Avatar for Cameronsmith63
0
350
Member Avatar for Andy90

Hi, I want to know how to save elements properties even after the form closes, and resume it back when I open the form. [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication2 { public partial class Form1 : Form { …

Software Development
Member Avatar for Andy90
0
180
Member Avatar for yeeitsneo

hi. soo i got this codes off of some site. its for a cool form entry and exit effect. but since im using this in my project i need to know what this lines of codes mean. and i mean every line. the site where i got it from doesnt …

Software Development visual-basic
Member Avatar for yeeitsneo
0
268
Member Avatar for vaironl

Hello forum, Vaironl here. I already asked this question with no luck. So now I will to repost it without the code. I have a JPanel which contains labelsand JTextField + other components. When I minize the window and then restore it The components stay in place but the are …

Software Development java
Member Avatar for vaironl
0
110
Member Avatar for scott_liddle

I'm creating a program that carrys out certain things dependent on the user input. One function is to read text from a text file, another is to add text to the same text file. I'm unsure about how to add an exception handler to make sure the text input is …

Software Development python
Member Avatar for ihatehippies
0
225
Member Avatar for MasterHacker110

I got this code, when i compile it it shows this error: Traceback (most recent call last): File "C:\Users\User\Desktop\Server2.py", line 13, in <module> UDPSock.bind(addr) File "C:\Python27\lib\socket.py", line 224, in meth return getattr(self._sock,name)(*args) error: [Errno 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted If you can …

Software Development client-server python
Member Avatar for ihatehippies
0
5K
Member Avatar for zios007

I have to write a program that prompts the user to select (but not disclose) a number between 0 and 31 and then asks exactly five questions to determine the number the user has selected. Each of the five questions is posed by presenting a group of sixteen numbers, asking …

Software Development c c# c++ gaming
Member Avatar for zios007
0
250
Member Avatar for mani-hellboy

Hi friends., I am now try to study LINQ in C#.net which book can i refer and that is easy to learn and give perfect example code snippet

Software Development asp.net c#
Member Avatar for thines01
-1
227
Member Avatar for Ashenvale

Can anyone tell me y is it that taxDeduc won't return the value? [CODE] import java.util.Scanner; public class PayollComputation { public static void main(String[] args) throws Exception{ Scanner get = new Scanner(System.in); //variable declaration int ctr, loc = -1, payrollPeriod, daysAbsent, minsLate, oTHours; int tempENo = 0; char ans, ans2; …

Software Development java
Member Avatar for Ashenvale
0
159
Member Avatar for docgrid

Hi everybody i need a bit of support in my vb coding. i have publish data on data grid(in vb express 2010) and want to check for the data in each an every row. there are few columns and i want to check the string "OK" under "Status" column. if …

Software Development vb.net
Member Avatar for docgrid
0
209
Member Avatar for Gaiety

Hi , what is the behaviour of below pseudo code. [CODE] pipe(fd) if(fork()){ read(fd[0]); } else { write(fd[1]); write(fd[1]); } [/CODE] I understand how system calls work , but could not understand the behaviour when used differently. secondly if a process uses while(1); in side its block, will the entire …

Software Development c
Member Avatar for Gaiety
0
187
Member Avatar for VIPER5646

Hi all. I have a program in vb.net and with it I have an expiration Key. I would like this key to be valid for 3 moths for example. I don't want to use the users system.date because to prevent them from changing the date. I there a way I …

Software Development vb.net
Member Avatar for VIPER5646
0
116
Member Avatar for vivekanandaan

[CODE] Dim conn As New OleDb.OleDbConnection Dim dbprovider As String Dim dbsource As String Dim ds As New DataSet Dim da As New OleDb.OleDbDataAdapter Dim sql As String Dim maxrows As Integer dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" dbsource = "Data Source = d:\sprrg\scm\scm\sprrg.mdb" conn.ConnectionString = dbprovider & dbsource conn.Open() sql = "select …

Software Development dataset open-source vb.net
Member Avatar for malkit.672
0
197
Member Avatar for Megann1120

I'm working on a program that lists a numbers prime factors. I've finished the bulk of the work and all I have left is the first print where it says the number is prime or composite. I know the way I'm going at it is wrong because it wont work …

Software Development c c# c++ mathematics
Member Avatar for Megann1120
0
301
Member Avatar for Ashenvale

:C my fresh install Netbeans 7.0 won't open and it says "JVM creation failed" can anyone pls tell me what's wrong? >.<

Software Development java windows-xp
Member Avatar for Ashenvale
0
90
Member Avatar for Labdabeta

I have an alpha beta interface and have implemented a tic tac toe class from it. For some reason my AI tends to occasionally make stupid moves (such as making a fork rather than blocking a 2 in a row) I was wondering if anybody can see where I went …

Software Development artificial-intelligence-llm c++
Member Avatar for Labdabeta
0
1K
Member Avatar for Ntropy

Basically, i've been told to initialise a grid into the "canvas" section of this program i've made, I need to make a fine grid that stretches across the whole canvas horizontally and vertically, 10 x 10 pixels apart example of the code i'm editing to do this below... [CODE] class …

Software Development gui java java-swing
Member Avatar for Ntropy
0
317
Member Avatar for javaprog200

Hello, The following program displays the text area for the entire JFrame even though I have set the dimensions of the text area to be 10 x 15. Any help will be greatly appreciated. Thank you! [CODE]import javax.swing.*; import java.awt.*; public class Scrollers extends JFrame { JTextArea area; JButton button; …

Software Development java java-swing
Member Avatar for javaprog200
0
183
Member Avatar for Sevyt

Can anybody tell me where i can find the connection string for using on a asp.net form. I am trying to connect a mysql database to it, and wanted to connect a access database to test the main functions. But i am having a hard time finding any of these …

Software Development asp.net mysql vb.net
Member Avatar for Sevyt
0
96
Member Avatar for wildplace

hi.. im trying to get a line using getline() function from an input file, but it is ignoring end line character. is there any other function that would including the end line character? btw, im not allowed to use something like aString+'\n' thanks in advance~

Software Development c++
Member Avatar for WaltP
0
121
Member Avatar for breaies

Okay, I am receiving scores and names from a text file to calculate averages. 1 line contains a name, the next line will contain 3 scores separated by spaces. Looks like this: Tom Babidal 93 94 99 Billy Marks 13 98 56 etc etc My code seems to read the …

Software Development c++
Member Avatar for WaltP
0
252
Member Avatar for kexkoj

Hi, So im trying to create a deposit method, but to no success. Can someone pls help me ?? This is my code for far: [CODE]static void depositCurrent (ArrayList<Current> CurrentListIn) { System.out.println ("Enter account number you want to deposit money into"); String accountNumber = EasyScanner.nextString(); boolean flag = false; double …

Software Development java
Member Avatar for kexkoj
0
175
Member Avatar for shandoosheri

Hi i wan to start an application but without showing its window Thank you

Software Development
Member Avatar for NetDeveloper
0
257

The End.