132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alafift

[code]import java.sql.*; public class GetAllRows{ public static void main(String[] args) { System.out.println("Getting All Rows from a table"); Connection con = null; String url = "jdbc:mysql://localhost:80/"; String db = "Flights"; String driver = "com.mysql.jdbc.Driver"; String user = "root"; String pass = "pass"; try{ //Class.forName(driver).newInstance(); con = DriverManager.getConnection(url+db, user, pass); try{ Statement …

Software Development java
Member Avatar for masijade
0
144
Member Avatar for Jigs28

How to bind selected columns to datagridview at runtime. I have written select * from tableName. And result i have stored in DataTable dt. Now i want only selected columns to be displayed in datagridview at runtime. I dont want to bound gridview at designtime.

Software Development
Member Avatar for Jigs28
0
520
Member Avatar for EmbroideryEtc

I have written a class to read a text file and write the data into a 2D array of max records x 12 fields. Now that I have this working, I need to be ablel to call this array from my other classes to perform different tasks on the data. …

Software Development java
Member Avatar for NormR1
0
973
Member Avatar for kained

This is annoying me. I have made a simple RSS feed but i need some of the links to open in a new window But i can't find a way to do this. All i want is the same functionality you get in html when you specify target-"_blank" How is …

Software Development html-amp seo xml
Member Avatar for ShailRathore
0
1K
Member Avatar for mrabrar09

Hello Everyone, Am facing problem am using RAD IDE, Java Version 1.6.0_30 from Sun Microsystems Inc. the program are executing successfully and showing output in IDE. But when am trying to compile the program outside the IDE the java program compiling the program and generating .class file but it is …

Software Development ide java
Member Avatar for JamesCherrill
0
250
Member Avatar for 47pirates
Member Avatar for JamesCherrill
0
367
Member Avatar for skran

Hi all! I try to filter a datagridview and I wrote an sql statement for that reason. The problem is that although I achieved to have multifilter I can find how to make my cod ignore the criteria which are null (empty criteria, when the user doesn t give any …

Software Development vb.net
Member Avatar for skran
0
271
Member Avatar for Vampiricx3

Hey guys, right now I have an Employee style java program that is basically for adding Employee data to a .txt file, I have all of that down pat, I have also got my program to automatically set the highest ID + 1, so I don't have to find the …

Software Development gui java java-swing
Member Avatar for Vampiricx3
0
161
Member Avatar for samidha

Here is a code for assembler; in which every-thing is gonna run except Origin directive.. [code] #include<stdio.h> #include<string.h> #include<conio.h> struct mottab //declaring mot table structure { char mn[6]; int Class; char opcode[3]; }; struct symtab //declaring structure for symbol table { char symbol[8]; int address; int size; }st[20]; struct littab …

Software Development c
Member Avatar for samidha
0
177
Member Avatar for pote86

The attached image is the example of .xls file that I want to import those data to mysql database using Java. Any help I get will be very much appreciated.

Software Development java mysql
Member Avatar for androidf
0
1K
Member Avatar for samidha

Hi, in my java project Employee Payroll, I am supposed to include a Ideal-Time window and maintain log for that ideal time for particular Employee... On the basis of which salary deduction or bonus to the employee will be calculated... For maintaining log, we will need JDBC; but for creating …

Software Development java
Member Avatar for DavidKroukamp
0
240
Member Avatar for noscimo

hi to all! i have a question since my program keeps showing a message which is very annoying.i have asked in several forums but still i havent found a satisfying answer but i just found out about this one,so i hope my problem will get solved! i have several sets …

Software Development c++
Member Avatar for noscimo
0
98
Member Avatar for Contagious98

I have made a database file in MS Access 2007, Now I made a basic blank form in VB2008. I have connected it already in the form. Now the problem is, how would I know if I have connected it successfully? I run the program > added a new entry …

Software Development vb.net
Member Avatar for Contagious98
0
188
Member Avatar for subhra1234

hello,everyone,basically,i am trying to install [B]pyaramid[/B] framework,i have [B]windows[/B] installed in my system,and i am follwing this link at the time of installing pyramid.... [B][url]http://docs.pylonsproject.org/projects/pyramid/en/1.0-branch/narr/install.html[/url][/B] [B][COLOR="red"]1.[/COLOR][/B][B]Installed Python 3.2 in my system and set the path D:\python32 in My Computer->Properties –> Advanced Tab –> Environment Variables and add that directory to …

Software Development python
Member Avatar for subhra1234
0
273
Member Avatar for shsh_shah

Hi, I have a 2 text boxes tbox1 and tbox2 now i want to populate tbox2 when a value is entered in tbox1...how this can be done? note: Supplier Table tbox1: SuppilerID tbox2: SupplierName..Should populate when supplierID is entered. How this can be done. As I am using MSAccess db... …

Software Development
Member Avatar for LP...
0
270
Member Avatar for cyberdaemon

Good day, I am creating an application that can play sounds on my program i used the snippet of VB.net i am using this code to play some sounds My.Computer.Audio.Play(".wav") all i want is to random pictures and the sounds associated on that pictures will be played... I ma having …

Software Development audio vb.net
Member Avatar for cyberdaemon
0
195
Member Avatar for jbutardo

Hi, I have this program that uses OLEDB connection to import excel file to data table then use it in other functions. Now I have this question: What are the possible limitations of OLEDB when it reads the Excel file. The File is on xls format, and I want to …

Software Development microsoft-office vb.net
Member Avatar for jbutardo
0
1K
Member Avatar for dippatel

hi im told to make a program where the user enters a large number like 13195 and the prgrams gives it the highest prime factor, which i 29. now i have to do this using recursion in basic c, without using loops of any kind, so noo for, while etc. …

Software Development c mathematics
Member Avatar for VernonDozier
0
7K
Member Avatar for gdubz

I keep getting a run time error, i think i has to do with the generate and/or checkNeighbor methods [CODE] #include <iostream> #include <vector> #include <windows.h> using namespace std; void display(vector<vector<char> > grid) { for(int x = 0; x < grid.size(); x++) { for(int y = 0;y < grid[x].size();y++) { …

Software Development c++
Member Avatar for VernonDozier
0
1K
Member Avatar for rmbrown09

1.) I am about to run to class and work for the day so I wanted to get this up before I left. 2.) I am using code blocks on Windows. 3.) I ma having an issue where either my main.cpp cannot find my header file, or if I change …

Software Development c++
Member Avatar for jaskij
0
434
Member Avatar for razamughal67

Anybody know how to show physical ram memory in label1.caption using vb6 please tell me a simple source code

Software Development visual-basic
Member Avatar for ChrisPadgham
0
216
Member Avatar for SoftShock

Hello, I have been working on a program that I got to work successfully, but when I transferred it to having only function calls in my main(), I started to get run errors telling me that something is being used without being initialized after I enter the second number. Basically …

Software Development c++
Member Avatar for SoftShock
0
238
Member Avatar for aditdano

I have a problem with this code : [CODE] #include<iostream> using namespace std; void qsort(int A[], int len) { if(len>=2){ int l=0; int u=len-1; int pivot=A[rand()%len]; while(l<u) { while(A[l]<pivot)l++; while(A[u]>pivot)u--; swap(A[l], A[u]); } qsort(A,l); qsort(&A[l+1],len-l-1); } else{return;} } void swap(int a, int b) { int temp; temp=a; a=b; b=temp; } …

Software Development c++ programming-construct
Member Avatar for jaskij
0
219
Member Avatar for sw8revenge

please check my code: it use to generate number in date format my problem is that it doesnt show any output in the textbox nor in the database the last num in my database is 2012010001 [CODE] Dim i As Integer Dim strSQL As String Dim strMonth As String Dim …

Software Development vb.net
Member Avatar for Smith5646
0
209
Member Avatar for LdaXy

i'm learning python currently, coming from c++ and i realized that i can't do certain things like in C++ anyways, i created a class call Object_refs: [CODE] #attempt to make a structure like class using INIT #to define all common variables. class Object_refs: def __INIT__(self, descriptor_type, type, reference_count, flags): self.desctype …

Software Development python
Member Avatar for LdaXy
0
225
Member Avatar for dsladev

Hi everyone, I'm new at C (just started this week), and I'm reading tutorials on line without the help of a book or class. I was wondering if there are common practices most tutorials teach that really aren't good to get into. The tutorial I'm reading now says to use …

Software Development c
Member Avatar for dsladev
0
91
Member Avatar for khentz

Here's my scenario I do have many link labels in my form. What I want to happen is, when a user click on that link label, the name of that link label will be passed to a variable.

Software Development vb.net
Member Avatar for Vichualito
0
161
Member Avatar for sylvester3

Hello, Im newbie at VB and i need help solving my issue please The code i used: [CODE] Dim SaveFile As New SaveFileDialog SaveFile.FileName = "" SaveFile.Filter = "Text Files (*.txt)|*.txt" SaveFile.Title = "Save" SaveFile.ShowDialog() Try Dim Write As New System.IO.StreamWriter(SaveFile.FileName) Write.Write(RichTextBox1.Text) Write.Close() Catch ex As Exception End Try[/CODE] The …

Software Development vb.net
Member Avatar for sylvester3
0
400
Member Avatar for inuasha

I want to be able to generate my own random numbers without using the random module. I want to do this that way I can learn somewhat how to do the big boy code on my own.

Software Development python
Member Avatar for snippsat
0
3K
Member Avatar for ashishgh

I have created an application which creates multiple webbrowser controls at runtime...now i want to clean up memory when these webrowsers are deleted see the code below please let me know how can i do it(i have tried dispose method but no luck) Creation on dynamic web browsers on button …

Software Development motherboards-cpu-ram vb.net
Member Avatar for codeorder
0
280
Member Avatar for belber

I have some question here, how to make vb6 project with nice interface..?? did it must use skin and active skin control 4.3 from component..??

Software Development visual-basic
Member Avatar for belber
0
217
Member Avatar for drameshgar1

Hi, I am using NetBeans as my IED to make game in JAVA i want to make a line on left hand side this is the code i wrote: Body staticplatform = new Body (world, PolygonShape.makeBox(50, 7), Body.Type.STATIC); staticPlatform.setPosition(new Vec2(-0, -200)); how can i make this line on right hand …

Software Development java java-netbeans
Member Avatar for NormR1
0
260
Member Avatar for skyshare

I have an access database where one of the fields is named 'mod' and it contains string HEX codes such as AE093C, 00C394, 405FD0 etc. I am trying to use a data control to do a 'findfirst' on this field but I keep getting the error 3077 'syntax error (missing …

Software Development visual-basic
Member Avatar for skyshare
0
148
Member Avatar for siabenie

Hi all, I am bit confused about this question: What is the value of i after the for statement is done? [CODE] int n = 100; int m; n = m; for (int i = 0; i < ; i++) { .. } [/CODE] I tried to write it down …

Software Development c++
Member Avatar for amir808
0
136
Member Avatar for jasonrefan

Hello, I have an 'Add' method that validates JTextFields to ensure data has been entered into them as well as checking that certain fields only contain digits. This works perfectly for my add method. But when I try to import it into my 'save' method which is seperate to the …

Software Development java
Member Avatar for NormR1
0
125
Member Avatar for soltak

Hi, I'm using Windows and Python 3. I'm having problems using [B]os.listdir[/B] with Unicode. Let's say I have a directory which contains files with Unicode file names. The name and path of the directory itself might or might not be Unicode. When it is Unicode, I can't seem to get …

Software Development os-x python
Member Avatar for soltak
0
2K
Member Avatar for zachattack05

I have a databound combobox and I need to get all of the ValueMember values from each item in the combobox. I'd prefer to not change the selected item in the combobox to do this, since each time the item in the combobox changes a few events are triggered that …

Software Development
Member Avatar for zachattack05
0
109
Member Avatar for drico7041

Hey, I was having trouble making my vector print out randomly generated numbers in ascending order. Can I please get some help?. This is my assignment "Write a program name count.java that will use a Vector to store 10,000 randomly generated numbers (ranging from 1 to 99) Now sort the …

Software Development java java-netbeans java-swing
Member Avatar for drico7041
0
185
Member Avatar for galhajaj

i am making a board-game in C# under .NET (i am new in this) now i am at the design stage in my game there are four resources - food, stone, gold & wood - that uses for gathering, buy stuff etc. like in a classic strategy game (age of …

Software Development oop
Member Avatar for hericles
0
131
Member Avatar for MrEARTHSHAcKER

Hi, I need help about launching a web site in default browser using Borland ( button click = launch google.com, for example ). I found solution valid in DEV: [CODE]ShellExecute(NULL, "open", "http://google.net", NULL, NULL, SW_SHOWNORMAL);[/CODE] But it shows an error if used in Borland: [ICODE]Access violation at address 0A1826C8 in …

Software Development c++ web-browser
Member Avatar for MrEARTHSHAcKER
0
153
Member Avatar for Mwoot

I have seen similar questions which attempt to solve this issue, but none seem to work for me so far... Basically, for my first VB project, I am creating a virtual keyboard where a sound is played from the resources on KeyDown. So far, the program seems to work except …

Software Development asp.net vb.net visual-basic
Member Avatar for Mwoot
0
211
Member Avatar for Shodow

example i will enter timein: 1:30 timeout: 5:00 how to know their time difference?in timeformat or how to accept a timeformat input from the user

Software Development java
Member Avatar for DavidKroukamp
0
122
Member Avatar for bhallarahul

Is there is any way or method to get the content of pdf row by row/line by line which help to convert pdf to word using itext api??????????

Software Development api java pdf
Member Avatar for peter_budo
0
955
Member Avatar for shotokanpoloto

I want to run an exe file in my project. I mean when I run my codes,a specific executable file run. How can I do that?

Software Development java
Member Avatar for DavidKroukamp
0
245
Member Avatar for laklaker

I created a game a random guessing game ( for school project ) . I just want to ask on how to put a hall of fame? Like when you played the game then its end it will be putted his/her name then it will be saved. Then it will …

Software Development algorithm java
Member Avatar for DavidKroukamp
0
199
Member Avatar for Eragah

[B][I]Hi I wanted to ask a quick question. I have two classes. And within my main class i am able to pass in variable to three variables EyeColorR to EyeColorB and able to send them the my Eye Class under the consturctor class Eye. the catch is I need to …

Software Development java java-swing oop
Member Avatar for Eragah
0
215
Member Avatar for shotokanpoloto

Hi...I want to read from a file and put each line in...the given file is like that : q0,q1,q2; a,b; q0; 7; q0,a,q0; q0,b,q1; . . . . (as you see it's the information of a nfa) Each line ends with ";" and each element of array is separated with …

Software Development java
Member Avatar for shotokanpoloto
0
224
Member Avatar for HelloMe

Hello guys... I downloaded JDK 6.0 (btw is it the same as JDK 1.6?) Anyways, when i want to install it a error message pops up during instalation that says: [B]Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could …

Software Development java
Member Avatar for aliartos
0
722
Member Avatar for Hmail

Hi all, I am working on a little application that displays internet video (using the chromeless Youtube player for now, will host more players later). So obviously I need something like a trackbar (slider) control to let the user jump to a specific position in the video. I do this …

Software Development
Member Avatar for skatamatic
0
145
Member Avatar for Bheeman89

hi friends. Im currently working in integrating GR Fingerprint SDK with vb.net application. I am using MSSQL 2008 as my database and vb.net as the front end. I have completed almost 90% of the application and im stuck in integrating this SDK with my application. It has an error such …

Software Development mssql vb.net
Member Avatar for Reverend Jim
0
651

The End.