64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for six_sic6

Hellow. I have 3 variables 1. string query; 2. public static OracleCommand oracmd; 3. public static OracleDataReader reader; I have used these variables in a function [CODE=C#] . . . public void PreviousValue() { query = " select * from....... "; oracmd = new OracleCommand(); .... .... reader = oracmd.ExecuteReader(); …

Member Avatar for six_sic6
0
192
Member Avatar for abhijeet P

hello all, I am new to J2ME development rather this is my first code i have written in J2me for encryption and decryption using bouncycastle . It is giving the error which i am unable to find solution for... plz help... :sad: This is the error it is showing in …

Member Avatar for abhijeet P
0
368
Member Avatar for mohamedasif18

Hi guyz,, I have 2 table like, [B]table1[/B] [B]Name[/B], [B]Number[/B] Gates 123456789 Bill 987456321 John 874123658 Peter 562314752 [B]table2[/B] [B]Number[/B], [B]Message[/B] 123456789 Hai hello 874123658 Gudmorning 123456789 Something Went 123456789 verY Nice morning 562314752 Hai spidy.. My Question is how to select all records from table 2 and also i …

Member Avatar for mohamedasif18
0
170
Member Avatar for kolibrizas

I got a file downloaded named "Rybka v2.3.2a.mp.w32.exe". In GUI chess software you are able to add this as a chess engine, but I have no clue how the input/output of that engine works. As I understand the program sends the engine current position and the engine returns some output. …

Member Avatar for thines01
0
177
Member Avatar for nickliutw

I'm running a problem with install the junit to the computer. I already download the junit to my computer. But how do I install it? I try to google it, but I don't understand their instructions. I remember in the class, my teacher do a lot of copy and paste …

Member Avatar for nickliutw
0
89
Member Avatar for KazenoZ

Hello, Simple question this time, I hope, I have a program that collects an argument from execution on another program, the argument is the path to a file. Now, the problem is that when I try to read the argument to a string using argv[1], it'll only get the first …

Member Avatar for Shimano
0
1K
Member Avatar for Labdabeta

I have this code for AlphaBeta implementation and have created versions of the required interfaces that work perfectly (I have debugged them quite thoroughly). Unfortunately my algorithm keeps returning an empty vector and score of 0. Here is the code: [CODE]#include <vector> #include <limits.h> using namespace std; typedef vector<unsigned char> …

Member Avatar for Labdabeta
0
314
Member Avatar for mehnihma

I need to check whether the entered numbers are valid, if not output a message. this needs to be done with using exception handles. i have tried the following but does not work. i get the error : cannot invoke hasNextInt() on the primitive type int [CODE]input = in.nextInt(); if …

Member Avatar for zeroliken
0
281
Member Avatar for dr_iton

Ok lets start with my problem: First i have to write my date of birth with the following format: DD.MM.YYYY This needs to be shown as DDMMYYYY, which means that dots must be lost. I've solved that. This kind of number with 8 digits it needs to be converted in …

Member Avatar for dr_iton
0
163
Member Avatar for phorce

Hello could someone explain what I'm doing wrong to get the error: Segmentation fault: 11 when trying to fill in a 2D array from two for loops? Here is the code: Matrix.h [code] #ifndef _Matrix_h #define _Matrix_h using namespace std; class Matrix { public: Matrix(); // Constructor Matrix(int M, int …

Member Avatar for phorce
0
1K
Member Avatar for mmazeemahmad

Hi all, i have a scenario in which there are two subscribed users (to database) in my web app.......now if one of it wants to send a message (just like mail but not sms) to another without using any email account...... but with the help of that website and some …

Member Avatar for hericles
0
325
Member Avatar for lxXTaCoXxl

I'm trying to make my particles fade in my application using the alpha argument of the Color.FromArgb method but my math won't work because I have a nullable DateTime variable and the error it gives me is 'System.Nullable<System.TimeSpan>' does not contain a definition for 'TotalMilliseconds' and no extension method 'TotalMilliseconds' …

Member Avatar for lxXTaCoXxl
0
1K
Member Avatar for jade_91

For the program I have the user entering their current distance and bearing from specified point with the programme then returning the nearest station and bearing/distance to this station. However I also want to include what line the station is situated so I know the code will be something along …

Member Avatar for jade_91
0
122
Member Avatar for emmas4impact

Hello, I'm working on a Moving Ball project and on the moving ball there are random number so i need to use the keyboard or the mouse to click on the number printed on the moving but i dont know how to go about it. here is the code below: …

Member Avatar for emmas4impact
1
2K
Member Avatar for RazorRamon

I have a mysql table that has id, name, type, size, content, and link. I have pages download.php and showimage.php. I want the link to affect the image so when the user clicks it sends them their. I only created showimage.php cause I had ran out of options on how …

Member Avatar for RazorRamon
0
3K
Member Avatar for tweets23
Member Avatar for diafol
0
254
Member Avatar for Sevyt

I am writing a small program to quickly search through a archive. But i cannot figure out how to get it to filter. I got my regular fields like firstname,lastname, gender, birthyear, street, city, zip, phone. Which i can search through by just entering one of these fields. Then i …

Member Avatar for Reverend Jim
0
236
Member Avatar for Tom_Krajci

Please see attached XML file. I am using the XPATH expression getValueXPath() in JavaScript to extract one value from an XML alert message - to control a robotic telescope. I need to extract the value for Dec, a coordinate location in the sky that is a child of <WhereWhen> The …

Member Avatar for Tom_Krajci
0
101
Member Avatar for XO39

Please be easy on me and don't shoot me as I'm still newbie. I'm totally confused and can't for life figure out why when I run this code: [CODE]y = 9; cout << "++y = " << ++y << "\n--y = " << --y << "\ny++ = " << y++ …

Member Avatar for XO39
0
179
Member Avatar for roottybrian

Hi guys, Have been trying this out for sometime with no success. I want to be able to use pdf printing application like pdfprinter to print my vb reports to and then save the reports to a particular location on my computer. Anyone with an idea how i'd achieve that? …

Member Avatar for Reverend Jim
0
371
Member Avatar for yeeitsneo

hi. can you please help me out with this program im writing. its a simple log in system written in vb6 . ms access is my database. i have a problem with connecting vb to access. heres the code: [CODE] /codes for module Public db As ADODB.Connection Public rec As …

Member Avatar for yeeitsneo
0
332
Member Avatar for mitrious

I have a node class that has a pointer to Node indicating its parent Node [CODE] class Node { . . . Node *parentNode; }; [/CODE] I receive a pointer to node in the constructor being the parent Node of the current node being created or a NULL value if …

Member Avatar for deceptikon
0
5K
Member Avatar for PF2G

Hi, i'm doing a profile page, where the user can see all his information. To begin i'm putting the information in a label, but for real i want to put it in textbox, so the user can change the information. That's one poit i would like change, the other - …

Member Avatar for degroundshaker
0
120
Member Avatar for veledrom

Hi guys, I want to assign something into label via JS but code below doesn't work for array. Do I miss something? Thanks in advance [code] <script> function calculate_cost(whichlabel){ document.getElementById('text_cost['+whichlabel+']').innerHTML = 'show me in label below'; } <input type="text" name="text_qty[]" value="0" size="3" maxlength="5" style="text-align:center;" onkeyup="calculate_cost(0)" /> <label id="text_cost[]">0.00</label> [/code]

Member Avatar for veledrom
0
118
Member Avatar for michaelzip

Hi, I am having trouble with retrieving records on my database. My layout was this.. [CODE]UsersList Username Firstname LastName Role Records TheUser ApprovedBy DateApproved [/CODE] The first text are the table names while the indented once are the field names. I have a table named Records. TheUser and ApprovedBy was …

Member Avatar for michaelzip
0
232
Member Avatar for king03

any ideas how to solve this?: I am using Visual Studio 2008 for compiling c++ programs and when I press f5(which is at default, the start debugging button) the console window flashes for a bit and then closes, but when I click on start without debugging, the console window stays …

Member Avatar for BobS0327
0
140
Member Avatar for lxXTaCoXxl

I've recently posted a code snippet of a working 2D text menu for Windows Forms Applications. However, as I was going through and revising this snippet (trying to make it better and add functionality to it) I've created two new problems. The first problem is that my text is not …

Member Avatar for lxXTaCoXxl
0
158
Member Avatar for patk570

Hello everyone. I seem to be having trouble with the doMath() section of my code. I was wondering if you can help me out... [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Package Plans</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"> <meta http-equiv="Content-Script-Type" content="text/javascript"> <SCRIPT LANGUAGE="JavaScript"> function …

0
97
Member Avatar for rotten69

I was just wondering why the constructor makes a call to the method toString() then I have realised that it's because of the method's name. And why is its name so unique? I changed the name but I don't get the same results. Anyone could possible explain this please? Thanks. …

Member Avatar for rotten69
0
340
Member Avatar for jone kim

grid = [[0,0,0][0,0,0][0,0,0]] user fills the gird simultaneously. Now I want to make a list of empty squaes of the gird. Suppose user has filled: grid [col1][row1] , grid [col3][row1], grid [col3][row2]. Now I need a list with indexes of the empty list i.e. emptyGrid = [1,2,4,5,7,8,9] First I've to …

0
113
Member Avatar for scheppy

I have a grid of 225 JButtons in a 2d array of 15 x 15 I was windering do i need 225 if (event.equals (Grid[0][1])) { } or is their a loops or something, thanks in advance

Member Avatar for scheppy
0
372
Member Avatar for Troy III

This is my first post of a type: "question", so bare with me... I need to obtain a list of supported events on an encountered browser version programmatically, ie, via script. Since Explorer exposes its events on document object I can do something as simple as this: [CODE];for(x in document)if(/^on/.test(x))alert(x);[/CODE] …

Member Avatar for Troy III
0
113
Member Avatar for Luxifour

Hey everyone, How would you go about creating a loop for taking user input without knowing beforehand exactly how many times it will run - as I can't seem to work out how to generate a unique name each time. So, for instance, say you want to take user input …

Member Avatar for Luxifour
0
189
Member Avatar for Farhad.idrees

hi i have written code but there is mistake in calculation.... i want to show price according to quantity in table.....but quantity is right but price is not rice.. code is [CODE] <?php $brush_price = 5; $counter = 10; echo " <table border=\"1\" align=\"center\">"; echo "<tr><td>Quantity</td><td>Price</td></tr>"; while($counter<=100) { echo "<tr><td>$counter</td><td>$brush_price</td></tr>"; …

Member Avatar for cereal
0
183
Member Avatar for scheppy

Ok, so I've imported import java.util.Random; and im trying to get a random number between 1 and 2, 1 and 4,and also 1 and 15, how would i acomplish this, i know how to generate random numbers, but not between 2 certain numbers?, how can this be accomplished?

Member Avatar for scheppy
0
164
Member Avatar for moroccanplaya

hi i got a a Tkinter text widget and a string i want to know how to display the string in the text widget ?? [CODE] abc = "hello world" text = Text(app, width=80,height=40, wrap='none').grid(row=2, column=2) [/CODE]

Member Avatar for bumsfeld
0
226
Member Avatar for jhbalaji

Is there any script that can give Equivalent date function in php Example If i assign a variable as 26.1.2012 it should output as 26<sup>th</sup> January 2012 Can someone help me on this!

Member Avatar for diafol
0
196
Member Avatar for BenzZz

Hi, I have three drop down boxes for a Date field; one each for days, month and year. I want it so that when a year and month are selected they can be checked and then i can use those variables to insert the options into the days drop down …

Member Avatar for BenzZz
0
469
Member Avatar for phorce

Hello, I'm trying to create a matrix that dynamically defines the rows and columns.. Now, everything is fine, apart from when I include a function to output the 2D array.. The error: Matrix.cpp:20: error: invalid types ‘double[int]’ for array subscript ... The code is: Matrix.cpp [code] #include <iostream> #include "Matrix.h" …

Member Avatar for phorce
0
130
Member Avatar for slasherpunk

So, I wrote the following program to connect to my local mysql server and create a table in the existing "test" database. The program compiled without any errors, but I got the following run-time error: java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on …

Member Avatar for slasherpunk
0
15K
Member Avatar for sagy26.1991

hello everyone, I am new to java programming and i am currently studying inheritance. I have following program and i am getting error [COLOR="Red"]"cannot find symbol"[/COLOR] .Please help me.Thanks in advance. [CODE]class Box { double width; double height; double depth; Box() { //default constructor width = 0; height = 0; …

Member Avatar for sagy26.1991
0
1K
Member Avatar for aashishsatya

Hi, I'm an absolute beginner in Visual C++ (Express Edition 2010). I've just been trying out this very simple program, and I can't get to use the '\b' tag like I did when I used Turbo C++ v4.5. The cursor moves backwards, but the text does not get erased, as …

Member Avatar for LRRR
0
308
Member Avatar for Undeclared

I have a Gridview in which I have made a column of checkboxes named 'Status'. When the user clicks a button I want to see if a checkbox in particular row was checked by him or not. Code I have written is: [CODE]for (int i = 0; i <= Grid.Rows.Count; …

Member Avatar for Undeclared
0
334
Member Avatar for jumboora

Hello Guys, My job is to process the text files. following are the steps that i have to do. 1: To combine multiple text files into one text file 2: Add filename (but without extension) in the beginning of each text file. 3: and Finally, index the contents of the …

Member Avatar for jumboora
0
2K
Member Avatar for danielbala

hi... im doing project for a school...and new to php and mysql..just learning.. i have to create one loginpage with 3 different users like corres,principal and the staff in the table field what type i have to give like ENUM or SET.. i want to assign 0 for corr,1 for …

Member Avatar for danielbala
0
162
Member Avatar for Farhad.idrees

hi i want to echo multidimansional array by using for each loop... i m doing it but i m not able to do... i hope some onwe will help me.. my code is [CODE] $Families = array ( "Farhad" =>array("Ali","Haider","Kashan"), "Sufyan" => array("Shahbaz","Ali2","Azaan")); foreach($Families as $key2=>$values3) { echo "$key2 $values3"; …

Member Avatar for Farhad.idrees
0
169
Member Avatar for bashaash

Hi to all I am having this problem can anyone help me to solv this problem pls here is the code. first problem [CODE]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /hermes/web07/b2501/mydomain.com/htdocs/media.php on line 40[/CODE] media.php code [CODE]<?php $connection = mysql_connect('localhost','test','test'); if (!$connection) { die ('error …

Member Avatar for diafol
0
170
Member Avatar for cadamsjr

Hi everyone, I have a javascript, jQuery, and c++ background so im not completely new but am just starting to learn Java in a University setting. In our first program we are to run it within a Do...While loop so the user can click a JButton for yes or no, …

Member Avatar for cadamsjr
0
192
Member Avatar for desup

Hi all, I need help with one script. If i Have string like [CODE]$str = "0001564[B]A[/B]58749655[/CODE] I need to find that [B]A[/B] in this string, and count which number is it (When tha A is on the third place, return 2 [starting from 0]) A think regular expression will be …

Member Avatar for desup
0
138
Member Avatar for dwayned

Hi Guys, I have imported a CSV file into the database and i want to write some functions to ensure that when data is loaded in that all spaces are removed from certain columns. For Example: In the Phone No column the numbers can appear as follows 07712345678 077 1234 …

Member Avatar for dwayned
0
169

The End.