199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Behseini

Hi, Can you please take a look at following code and let me know how I can restrict the "txtColor.Text" in a way that if user insert a wrong hex sting(value) like "KKKKKK" the exception handler handle the issue and pops a warning message to correct the input? [CODE] using …

Member Avatar for Mitja Bonca
0
3K
Member Avatar for Dwillich87

Alright I think I'm getting closer but now my program skips by my System.in feature so the radius is never enter and just runs to completion any help would be greatly appreciated [CODE]import java.util.Scanner; public class Square { static class Circle { float radius; public double CircleInfo() { Scanner in; …

Member Avatar for Akill10
0
138
Member Avatar for moonL!ght

hi evry one ,im not used to java and i hate its bad compiler can any one tell me whay it give me this running time error:array index out of bound! this is the code were it have the erorr: [CODE] public class RotatingBieChart extends JApplet { int diamter,radius; int …

Member Avatar for hiddepolen
0
209
Member Avatar for pikalife
Member Avatar for fo2sh

i knew every thing about it in couple of days, and when i thought i finished the project (ASP project), i forgot about the deployment part and needed to use the database as local database (SQL server database file) the problem is i cant get the report wizard to connect …

0
115
Member Avatar for fo2sh

i knew every thing about it in couple of days, and when i thought i finished the project (ASP project), i forgot about the deployment part and needed to use the database as local database (SQL server database file) the problem is i cant get the report wizard to connect …

0
115
Member Avatar for Asimina

i want this animation to start from the beginning but i dont know how to do it. im using scriptaculous framework. here is my animation: [url]http://silviadwomoh.com/loop/[/url] and here is my code: [CODE] <script type="text/javascript" language="javascript"> //fade div 1 new Effect.Fade('anim1', {duration: 1, from: 0, to: 1, afterFinish: function (one){ //after …

Member Avatar for Asimina
0
198
Member Avatar for biggnlarge

I am currently creating a queue ADT for one of my classes in college. We are using a linux ssh server for compiling our programs, but i am writing the code in windows. When i compile i get no errors, but when i run it goes fine until it hits …

0
124
Member Avatar for bikashdas

Can anyone help me out pls Unable to display data in datagridview : vb 2010 express + mysql server 5 + odbc connector 1. I am able to connect database successfully. I am using arraylist to set data. & also i m getting till it set to dataview (Object name …

Member Avatar for bikashdas
0
227
Member Avatar for ShaRp codeR

Hello, I am a first year Comp Sci student and i am trying to finish this program. I am almost done with it but i just can't figure out one thing which is that, how do i show the initial principal amount under Principal heading in loop? the initial amount …

Member Avatar for Nathaniel10
0
168
Member Avatar for lbgladson

I have an assignment to take the functions and use array subscripting and pointer arithmetic to write the functions. int stringLength(const char* s); char* stringCopy(char* s1, const char* s2); char* stringConcatenate(char* s1, const char* s2); and use the following tester driver: but I have no idea where to start when …

Member Avatar for WaltP
0
137
Member Avatar for Syrne

Hi again guys. I currently have a class named [B]ElementSet[/B] which houses an array of objects as well as an array of boolean values which pertain to two function tasked with flagging or unflagging an individual object. I also have an abstract class, [B]Element[/B], and two inheriting classes named [B]Subscriber[/B] …

Member Avatar for Syrne
0
229
Member Avatar for mightyjoe77

I have a CSV textfile that contains "Student" and "Grades". I need to find the average of the grades but my array has a string data type and I keep getting an error message b/c I need to someread read the grades without reading the Students. Any Help?

Member Avatar for hkdani
0
104
Member Avatar for Arjun_Sarankulu

Procedure is created on SQL server inserting the data from sql server to oracle databse When individually run the query it executed in 10 sec When run through procedure it takes sometime 1.5min and 5min [CODE] CREATE procedure sp_Trade_Book as Begin SET NOCOUNT ON BEGIN TRY --Begin of TRY BLOCK …

Member Avatar for moone009
0
120
Member Avatar for gahhon

[CODE]public class Fan { final int SLOW = 1; final int MEDIUM = 2; final int FAST = 3; private int speed; private boolean on; private double radius; private String color; public Fan(){ speed = SLOW; on = false; radius = 5; color = "Blue"; } public Fan(int speed, boolean …

Member Avatar for gahhon
0
229
Member Avatar for knottykings

Pls I need help on this validation script. Even after logout and without login, I can access the assigned webpage. What might be wrong?? [CODE]<?php //Start session session_start(); //Check whether the session variable SESS_MEMBER_ID is present or not if(!isset($_SESSION['login']) xor (trim($_SESSION['login']) == '')) { header("location: login.php"); exit(); } ?>[/CODE]

Member Avatar for nagarjunrajen
0
184
Member Avatar for Mona..

Hi .. I have this program, its reding correctly but its not doing what i want i.e. it suppose to read the input file and call the functions according to the action saved in the file this is the problem : [CODE] #include <iostream> #include <Fstream> using namespace std; void …

Member Avatar for Mona..
0
360
Member Avatar for aadi_capri

hello friends, i have a windows project in vb.net, in which i have to connect my project with an excel database i have microsoft office 2007 installed on my lappy.. please help me with the code. thanks in advance..

Member Avatar for Reverend Jim
0
227
Member Avatar for Dmennite

The application is supposed to install the following without connecting to internet. .Net Framework 3.5 MySQL Server (noinstall zip) - custom install dir, basedir, datadir - run as service with custom name My SQL Connector Restore Mysql db Update Config file with the MySQL uname/pwd. I have all the msi …

Member Avatar for Dmennite
0
239
Member Avatar for soham.m17

I want to add a selectable image to a PadDraw() of a JFrame container. So how can I do it? I've got a idea that it can be done by JLabel, but I think it's not selectable. So, how can I add that?

Member Avatar for soham.m17
0
105
Member Avatar for axa121

Hi I've been trying to code a bst based upon this link below: [url]http://www.stanford.edu/~blp/avl/libavl.html/BST_operations.c.txt[/url] I've adopted a similar strategy, whilst making some modifications, however for me I'm having a problem in that every time I go to add a new node to the bst, the root is always null, and …

Member Avatar for axa121
0
193
Member Avatar for compulove

I am confused about how to make a button able to clear the text in all textboxes. I know in c# I can just say textbox1.Clear(); but this won't work in this case. Please someone help please! thank you!

Member Avatar for codeorder
0
89
Member Avatar for sha11e

The book I'm using says it should look something like this [CODE] import java.io.*; public class main { public static void main(String[] argv) { String fil = "CormeOn.bat"; FileWriter fw = null; try { fw = new FileWriter(fil); } catch(FileNotFoundException fnf) { System.out.println("Yea...."+fnf); } catch (IOException e) { e.printStackTrace(); } …

Member Avatar for JamesCherrill
0
129
Member Avatar for aero31aero

I have a file of name PROFILES.DAT in which several records are stored. I want to create some new fields in those records so I made a new program to read the file, store records in a structure, copy the structure elements into a new structure and finally write the …

Member Avatar for aero31aero
0
257
Member Avatar for fausto1234

I am stuck in this code. I have to print results every 30 tosses for 500 total tosses. I made the 30 but in the loops. And also percentages are showing as 0 Help or hints would be much appreciated. [CODE]import java.util.Random;// program uses class Random public class CoinTossing { …

Member Avatar for fausto1234
0
159
Member Avatar for pavani2006

how can i check a given string to form a palindrome or not for(i=0;i<str.length();i++) { if(str.charAt(i)==str1.charAt(i) } }

Member Avatar for JamesCherrill
0
225
Member Avatar for Raghu_Ganapm

I would like to know when NullPointerException comes in java. any help would be appreciated.

Member Avatar for hfx642
0
97
Member Avatar for mamtha

The below query is updating all the rows in the table1 eventhough the inner query only selects few of the rows. Any help. Appreciate it. Thanks, UPDATE table1 out SET (col1, col2, col3) = (SELECT col1, col2, col3 FROM (SELECT col1, col2, col3 FROM table1 in, table2 a, table3 b …

Member Avatar for hfx642
0
110
Member Avatar for rotten69

Hey everyone, Is this the right way how to make a trigger in Oracle? [CODE] CREATE OR REPLACE TRIGGER "TRI_AMOUNT_REDUCTION" BEFORE INSERT ON "PURCHASE" FOR EACH ROW BEGIN IF (:NEW.CLIENTNO =SELECT C.CNAME, T.CLIENTNO, T.TOTAL FROM CLIENT C, ( SELECT A.* FROM (SELECT CLIENTNO, SUM(AMOUNT) AS TOTAL FROM PURCHASE GROUP BY …

Member Avatar for hfx642
0
150
Member Avatar for rotten69

Hey everyone, I'm trying to count all Purchases and find ReceiptNo the ones that start with '434'.. [CODE] Select count(p.purchaseNo) from purchase p (select INSTR(TO_CHAR(p.recceiptNo), "434") >= 10; [/CODE] But this line doesn't only select all receipt number starting with 434.. it selects all receipt no that has 434 in …

Member Avatar for hfx642
0
85
Member Avatar for geekman89

Please, please explain to me why this is giving me an error: [CODE]class bvo: C = 'Hello' def getC(self): return self.C bvo.getC()[/CODE]

Member Avatar for geekman89
0
148
Member Avatar for freakvista

Hello there! I'm working at a new game and i have a little problem.. [ICODE]program MousTestProgram; uses Crt, Dos, Graph; var graphicsdriver,graphicsmode,errcode:integer; procedure ResetMouse; var regs : registers; begin FillChar (regs, SizeOf(regs), 0); regs.ax := $0000; Intr ($33, regs); if regs.ax <> $FFFF then begin writeln ('hardware/driver not installed'); halt; …

Member Avatar for TrustyTony
0
105
Member Avatar for Wattsits

Hi All, im pretty new to c#. Im trying to use this class from codeproject ([url]http://pastebin.com/ZdVGf0wd[/url]) to save a struc to file. This is my *short& test code ([url]http://pastebin.com/bARaBe7a[/url]). I am able to write and read a file as long as it only contains one struc. as soon as i …

Member Avatar for Wattsits
0
174
Member Avatar for Forte1292

In high school I learned Pascal and C++. Everything from hello world to search trees, to graphical battleship with AI. Now I'm a freshman in college and in my CS1 class we are using Java, but after 2 months we are just now on arrays. Basically I was just hoping …

Member Avatar for hiddepolen
0
93
Member Avatar for gedas

hey, i ma creating a join of the same table the output i want is something like this: |Ticket Ref Number|Ticked Opened On|Ticket Closed On|Time Spent In Minutes|TotalAverage| |0000712 |2011-09-14 |2011-10-18 |20023 | 12hours| |0000200 |2011-06-14 |2011-10-08 |40023 | (null)| |0000001 |2010-06-14 |2011-10-02 |20023 | (null)| |0000099 |2010-07-13 |2011-10-01 |10022 …

Member Avatar for Smeagel13
0
180
Member Avatar for cjohnweb

I've been looking, and there seams to be a lack of Ron Paul (for president 2012) Wordpress Themes. So I think I'm going to have to make my own...but then I remembered I suck as design. So I was wondering if anyone might know of a good resource where I …

Member Avatar for kertjoert
0
118
Member Avatar for danthevan

Hello, I have a weird problem while running my project. I use netbeans and here's my code and the problem is explained after the code. [CODE]/* * NetworkingView.java */ package networking; import org.jdesktop.application.Action; import org.jdesktop.application.ResourceMap; import org.jdesktop.application.SingleFrameApplication; import org.jdesktop.application.FrameView; import org.jdesktop.application.TaskMonitor; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Timer; import javax.swing.Icon; import …

Member Avatar for danthevan
0
238
Member Avatar for ilovejava

lets say i have 8 deck of cards how to put all of that inside a array do i have to make a multidimensional array for each deck???

Member Avatar for JamesCherrill
0
273
Member Avatar for pfm200586

Hello everyone, I have a question about list boxes I want to know how to test the 1st list box if it has items more than the other list box but by one item, here is what i have: [CODE]If lstInvisibleTv.Items.Count > lstInvisiblePc.Items.Count Then[/CODE] it works good if the lstInvisibleTv …

Member Avatar for codeorder
0
320
Member Avatar for SI THU

hello, anybody help me please, i want to know "delete a folder" code.If you know please help me. Thanks for your read. Thanks all

Member Avatar for SI THU
0
101
Member Avatar for daniel1977

Would you help me with this question. Just using basic and easist language. Design a grade average program that will produce the numerical grade average of test scores input by a user. Your program should contain the following: • You must use an Array as your data structure to store …

Member Avatar for WaltP
0
82
Member Avatar for Archenemie

I am making a quick program to get basic database functions working before i create a larger app but my application keeps force closing when i try and read from the database. I am an amature at android programming and im just starting out. Does anyone know what is wrong? …

Member Avatar for stanleyben
0
136
Member Avatar for Braindead90

Hi, I am trying to work on creating a linked list of player in a game, but I have not written code in a while and have no idea what I am doing wrong, can you please help with suggestion of what I did wrong or idea of how can …

Member Avatar for jmichae3
0
192
Member Avatar for alex8206

[CODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>XYZ Travels Pvt Ltd.</title> <script type="text/javascript" language="javascript"> function a(){ var x = document.forms.frm1.UserID.value; var y = document.forms.frm1.Pass.value; if(x=="" || y=="") { alert("Required Field cannot be left Blank"); if(x!="") { document.forms.frm1.Pass.focus(); } else{document.forms.frm1.UserID.focus();} } …

Member Avatar for stanleyben
0
554
Member Avatar for KenGreen

In an earlier post, Tech-B stated that, other then dialogs, there wasn't 'any "real" GUI support' in Python that uses the Android SDK or SL4A/SAE. Has anyone tried Jython with the Android SDK?

Member Avatar for Tech B
0
375
Member Avatar for champu8

If i try to store character in an integer variable...the programs shows error...it repeats certain statements indefinitely... i want that if i try to store character in an integer variable...it should prompt the user to enter integer again...lz help

Member Avatar for WaltP
0
92
Member Avatar for Johnrocks

Hello, I want to put all my events in one class file and call them in a main window following is my code in mainwindow.xaml file [CODE] <Window x:Class="WPF123.MainWindow" xmlns:Local="clr-namespace:WPF123"> <Window.CommandBindings > <CommandBinding Command="Local:MyCommands.Print" Executed="PrintCommandHandler" CanExecute="CommandBinding_CanExecute" /> </Window.CommandBindings> ... <Button SmallImageSource="Images\Print.png" ToolTipTitle="Print" Command="Local:MyCommands.Print" /> </Window>[/CODE] mainwindow.xaml.cs [CODE] public MainWindow() { …

Member Avatar for Panathinaikos22
0
153
Member Avatar for 2aliraza

hi plz help me how to simple displaying 1 to 20 prime numbers with for loop plz help me

Member Avatar for 2aliraza
0
749
Member Avatar for xanawa

Hi, I would like to know the code used for java to clear the screen as we do in c# using [COLOR="red"]Console.clear();[/COLOR] is it possible in Java aswell? If yes, what code should i use?

Member Avatar for Taywin
0
147
Member Avatar for ilovejava

hi i started coding battle ship when i was done i noticed that the user and computer always misses, even if they hit, i dont know what i did wrong [CODE]import java.util.Scanner; public class Battleship { public final static String USER = "user"; public final static String COMPUTER ="computer"; public …

Member Avatar for ilovejava
0
2K

The End.