199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for k_en

i get time field from a database table. But may i know how to convert it into 24 hour minutes and second. simpledateformat("hhmmss") is not working. Is there any other simple java method doing it?

Member Avatar for masijade
0
170
Member Avatar for mkerrigan

I am trying to only certain characters to be saved to the database from input of a textarea. The input is going to a variable called $vBody. What I have below works: [code]$vBodyCleaned = reg_replace('[^A-Za-z0-9~!@#$%&*()-_=+'|:;",./? ]','',$vBody);[/code] except for the fact that the client wants to preserve the line feeds and …

Member Avatar for ShawnCplus
0
88
Member Avatar for cellus205

Having some trouble adding children to tree view. All of the parent nodes are created correctly, but it wont add more than 1 child to each parent like it should. It just adds 1 to each parent. Thanks in advance. [code] For J = 1 To WorkOrdersDataSet.BatchTable.Rows.Count() rootnode = workqtree.Nodes.Add(CStr(BatchTableTableAdapter.BatchID(J))) …

Member Avatar for cellus205
0
136
Member Avatar for dipankar.

hi, i tried to connect to the database using simply applet, but it showed some error message, i m bit confused whether or not is that possible..

Member Avatar for jwenting
0
96
Member Avatar for l_kris06

Hi All, I have a PHP application, that displays information in a table format, each rows contains specifica information which are dynamically fetched from the MySQL database. i am looking for a way to make these individual rows display more information, meaning i want to implement a functionality where in …

Member Avatar for digital-ether
0
2K
Member Avatar for Futbol10

Please help i have added buttons but they aren't how i want them.....how do i change the letters to squares and how i want them? and at the very bottom i am confused with what to do next thanks for anyhelp import java.awt.*; import java.awt.event.*; import java.applet.*; import javax.swing.JOptionPane; public …

Member Avatar for Futbol10
0
111
Member Avatar for The_Rick_14

Hi there. I'm now to this forum hoping to get an answer that I feel shouldn't be too complicated but, with that said, I haven't been able to find a solution to this after doing some research for a few hours today. What I am looking to do is take …

Member Avatar for The_Rick_14
0
183
Member Avatar for &rea

Hello, I am programming an image application with a GUI. I open a grayscale image like this: [code] String^ s = openFileDialog1->FileName; s = s->Substring(s->LastIndexOf('\') + 1, (s->Length - s->LastIndexOf('\')) - 1); InputImageFileName = s; bmpInputImage = gcnew System::Drawing::Bitmap(openFileDialog1->FileName); [/code] then I create a new image [code] binaryImage=gcnew System::Drawing::Bitmap(bmpInputImage); [/code] …

Member Avatar for &rea
0
1K
Member Avatar for Visualogic

this is a dice game by using form to display it have 3 dices in the function but when i win, it cant extra money. [code] <html> <head> <script> function init() { bal=2000; form1.balance.value=bal; form1.balance.disabled=true; form1.bynum.disabled=true; form1.buy.disabled=true; form1.status.disabled=true; } function restart() { form1.balance.disabled=false; form1.bynum.disabled=false; form1.buy.disabled=false; form1.status.disabled=false; } function roll() { …

Member Avatar for nav33n
0
252
Member Avatar for olipals

Hi! I've got an assignment to read an input file and do some calculation and a graph and fancy stuff like that. The problem I am having is reading the file. I get a file that looks like this: [code] 0.00 1.776e-12 3.756e-07 0.000e+00 0.000e+00 0.20 1.769e-12 2.377e-07 0.000e+00 0.000e+00 …

Member Avatar for sneekula
0
273
Member Avatar for HB25

Dear Friend I am trying to perform the flowing tasks using the following SQL statement in Microsoft Access but they don’t work. I wonder if someone could help and tell me what is wrong with my Statements. Whenever I run these statements it will not create the query. [B]Task 1: …

Member Avatar for HB25
0
169
Member Avatar for inshi

Hi, i have already uploaded a video file in the .avi format, but now am stuck. i don't how to proceed to be able to play the file.i have used the PHP language. it will be very nice if someone can help me.PLEASE.i think a sort of streaming has to …

Member Avatar for digital-ether
0
86
Member Avatar for HB25

Dear Friends I am relatively new to Microsoft Access and I have to create a report to perform below task, any suggestion, comment and advice will be really appreciated. Task 1: Prepare an order as a report (similar to the attached order form) to show an order for a customer …

0
279
Member Avatar for gsuhit

I have a report with a simple parameter (string parameter) and I'm setting it with this code: ParameterFieldDefinition parameter = _reportDocument.DataDefinition.ParameterFields["Filtro"]; CrystalDecisions.Shared.ParameterValues currentValues = parameter.CurrentValues; currentValues.Clear(); CrystalDecisions.Shared.ParameterDiscreteValue newValue = new CrystalDecisions.Shared.ParameterDiscreteValue(); newValue.Value = "Value to Set"; currentValues.Add(newValue); parameter.ApplyCurrentValues(currentValues); But when I run the report, the program show an automatic window …

Member Avatar for gsuhit
0
111
Member Avatar for kapilver

I want javascript code to hide the hyperlink whenever user start mouse over on the link. Help me please...

Member Avatar for vic_msn
0
72
Member Avatar for faust_g

Dreading memory leaks, I would like to make sure I have an understanding of the following code: [code=CPP] //vector initialized to allocate 10 string objects vector<string> *pvec1 = new vector<string>(10); delete pvec1; //10 vector<string> objects vector<string> *pvec2 = new vector<string>[10]; pvec2[0].push_back("test1"); delete [] pvec2; [/code] 1> Would executing the preceding …

Member Avatar for Radical Edward
0
146
Member Avatar for computers08

I need to make a handman game I have code but it won't show all the gesses at once and it won't end even if you get it right. PLEASE HELP This is what I have [code] #include <iostream> using namespace std; int main() { char solution[20]; //holds solution char …

Member Avatar for Salem
0
294
Member Avatar for zoner7

So I have a multi-dimensional array, and I want to pass a reference of it to another function so that the array is defined in the scope of the function, because the array is not a global variable. If I can remember correctly, the syntax looks a little like this: …

Member Avatar for Ancient Dragon
0
124
Member Avatar for ambarisha.kn

i am getting error in following program. what is "iota". Why it is giving an error in the following program [CODE] #include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { vector<int> V(10); iota(V.begin(), V.end(), 7); copy(V.begin(), V.end(), ostream_iterator<int>(cout, " ")); cout << endl; cin.get(); } [/CODE]

Member Avatar for Radical Edward
0
1K
Member Avatar for herrepeder

Hi, I am using Visual Studio 2008 with .NET, on Windows XP. Does anyone know how to (in C++): *Recieve a trigger signal(1bit) from an external device, ie throught a generic microphone input(jack). * Play/stream a 1D table of raw data(double/long) as an audible sound throught the sound card. Assume …

Member Avatar for herrepeder
0
258
Member Avatar for beelzibub

[ICODE]package chessbuard; import java.awt.*; import java.awt.event.*; import javax.swing.*; //import javax.swing.event.*; import javax.swing.border.Border; class ChessBoard extends JFrame implements MouseListener, MouseMotionListener { GridLayout Board = new GridLayout(8, 8); int drag1, drag2; int xMove, yMove, labelw, labelh; JLabel label; String[] manrow = {"Pawn0", "Pawn1", "Pawn2", "Pawn3", "Pawn4", "Pawn5", "Pawn6", "Pawn7"}; String[] manrowx = …

Member Avatar for PoovenM
0
164
Member Avatar for samarinder

I m getting problem in displaying charts and m not exactly able to find the problem plz plz help me wher i m wrong plzzzzzzzzzzzzzzzzzzzzzzz its very urgent............-------- --------------------- [code=java]package src; import java.io.PrintWriter; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import javax.servlet.http.HttpSession; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartRenderingInfo; import org.jfree.chart.ChartUtilities; import …

Member Avatar for samarinder
0
153
Member Avatar for vtsmokey88

My problem is I have a cache file that I'm pulling in from a seperate source. The cache contains a long string that would look something like this except much longer. myexample=1 status=0 timesHit=2500 Basically I need help figuring out how to break this up into myexample=1 status=0 timesHit=2500 The …

Member Avatar for stephen84s
0
92
Member Avatar for slacke

Hello. I am working on a code where I need to simulate a character string on the serial port com1. (/dev/ttyS0). I have a WinCom aplication which helps me to read the output from an Enigma receiver. This receiver sends out signal strings like this: 5012 444418E13001000<DC4> // signal @ …

Member Avatar for Nick Evan
0
197
Member Avatar for razer.anthom

Hi all. I am having a weird problem with PHP sessions. I create a session but when I click a link inside my site, other session is created. To test it I copy this code below and tried to run in same environment (WAMP at localhost). The same behavior was …

Member Avatar for nav33n
0
224
Member Avatar for Software guy

Hi, I am jahan, i just started java applets and i was trying to draw a graph. The idea i am using is based on drawLine(xmin,ymin,xmax,ymax). I wanted to get a graph for sinx which is proving to be difficult. i used following syntax to implement my idea: import java.awt.*; …

Member Avatar for PoovenM
0
2K
Member Avatar for champnim

I want to access my mobile phone,connected through its USB cable, from a C program to send AT commands to it.Can sumbody pls help me

Member Avatar for champnim
0
177
Member Avatar for cellus205

Hows it going everyone. Right now I am trying to read data from a text file into a datatable, and display the datatable in a new form. I am trying to use a string array to store the variables before adding them to the table. Everything compiles etc correctly, but …

Member Avatar for dadelsen
0
4K
Member Avatar for Thirusha

I have a couple of div tags inside a form, inside those tags, there are input elements, i would like to know if there is a way to loop over all the input elements that are inside the div tags. This has to be dynamic as i will not know …

Member Avatar for Thirusha
0
604
Member Avatar for nandhinijp

Hi, I want to store video name in database and videos in one folder.This can be achieved by fileupload. How to retrieve videos from database and display on windows media player depending upon the query?

Member Avatar for nandhinijp
0
434
Member Avatar for marcosjp

Hi there! I'm building a small application using Java and MySQL (college assignment). Everything is ok when all I'm doing are queries using SELECT. Now, when I try to INSERT anything in the table, I get this error message: java.sql.SQLException: Can not issue data manipulation statements with executeQuery(). 0 S1009 …

Member Avatar for masijade
0
127
Member Avatar for tejapedada

Hi all, using C language we can read text files. we can read each and every character. ch =fgetc(filepointer); but i want to know how to read folders. for ex: fopen("c:\one foldername", "r"); in out put i want print subfolders and files. if any body know please help me... thanks …

Member Avatar for WaltP
0
113
Member Avatar for FaridMasood

I am a programmer with not more than 2 months experience and facing a very difficult chellange. I want to read an online page in my aspx page to get the data on that page. is it possible to read a page not developed by me. Any one can help …

Member Avatar for FaridMasood
0
112
Member Avatar for k2k

hello, I am writing a script to send email to all the users. Can anyone provide the syntax or internet source in reading line from a dir or text document? if users are under /home like: student1 student2 student3 student4 student5 student6 my try is: #!/bin/sh line =`read` while : …

Member Avatar for k2k
0
109
Member Avatar for ambarisha.kn

I want to run the following code. Its giving error as "Fatal Error" not able to open 'print.hpp' . No such file or directory.. I didn't understand what is #include "print.hpp". what type of file it is. shall we have to write this header file before executing the program. [code] …

Member Avatar for ambarisha.kn
0
227
Member Avatar for Phaelax

The first thing at the start of every page is "session_start()". Next, each page has the following code. The 'loggedIn' session variable was initialized to 0 with a require_once call of another script. When you log in, the page that did the check will show the login is successful, but …

Member Avatar for johnsquibb
0
154
Member Avatar for EAnder

I am trying to add user input using the raw_input function to string url_orig. I am attempting to replace the spaces with +'s to make a 'google search'. the replace function works fine in IDE but not when I excecute the program. Any help will be appreciated [code]url_orig = 'http://www.google.com/search?hl=en&q=' …

Member Avatar for woooee
0
98
Member Avatar for joker40

[B]Hi all of you , I just want to ask which programming language used in paypal website also its possible to make like this website in php ??? thanks all [/B]

Member Avatar for scorpionz
0
180
Member Avatar for Egypt9

This is a very beta peice of code in a function I am working on that will write records to a file (casted as character data). I'm using an overloaded operator to set values in a class called Account. My teacher insists that I use the account as a way …

Member Avatar for Ancient Dragon
0
185
Member Avatar for rharvison

Hi, all. I am very new to C++ and am close to losing my mind with the homework. We are asked to generate a multiplication table using a 'for statement'. User is to input a number between 1-12; the program will generate a multiplication table and should loop for no …

Member Avatar for Alex Edwards
0
155
Member Avatar for Fost

Hey people, Cheers for checkin this, its a pretty simple concept but theres a bug which is annoying me, any feedback is appreciated. Ive got a script which is used to assign username and password form inputs default values of "Username (E-mail)" and "Password" The problem is, the script changes …

Member Avatar for digital-ether
0
105
Member Avatar for msspitul

msspitul Member since: 5/21/2008 From: Northborough, MA, United States Posted - 5/21/2008 12:43:01 PM Hi, I have a program that was originally in VB that I am trying to convert to C#. I have converted all of it succesfully accept for a part that uses the "like" statement. The program …

Member Avatar for blovi32
0
443
Member Avatar for orlandolee

Hi Guys, I created a single instance C# application tool that I use in my work every day. I assigned a windows shortcut key so that I can launch it using keyboard and I created it so that it will only appear in my system tray when minimized and not …

Member Avatar for blovi32
0
107
Member Avatar for still_learning

I have a javascript function and then below it I have some html. In the html I want to be able to document.write() a variable from that function above. Is this possible?? Basically if I have function x() with some variable declared inside of it, I want to be able …

Member Avatar for digital-ether
0
255
Member Avatar for slacke

I need to write a small program which collects (20-36 string) data from several com (serial ports) and sends them out on one. For example com2,3,4 to com1. It should be on Windows Xp workstation. (It is possible that I will do it later on linux, it seems to me …

Member Avatar for Ancient Dragon
0
357
Member Avatar for rinoa04

Hello, I am currently designing a system using C# winform. However, there is a problem in opening and closing multiple winform. For example, when i run the application, a login form will appear on top of the main form. The main form will only be enabled after user enter the …

Member Avatar for JerryShaw
0
307
Member Avatar for dangana

This code i've written keeps showing an error "constant expression expected in function main". I'm not sure if the code i've written is on track. [code] #include<stdio.h> #include<math.h> #define MULTIPLY 1 int i,n; int operation; int Answer = 1; int main() { printf("You are welcome\n"); printf(" how many numbers do …

Member Avatar for jephthah
0
142
Member Avatar for prushik

I have written a few games in C++ with OpenGL, and I am working on another one now, its my biggest project. Everything works really great on my computer, but whenever I move my executable to another computer, the depth testing completely stops working. I have no idea what causes …

Member Avatar for jephthah
0
131
Member Avatar for Gentleman

Hello Forum , I am working on Windows XP SP3 ,I want to configure my PHP server accessible for our entire LAN cz I want to post and retrieve information to/ from my database being on any machine in our LAN. What configuration can I make?

Member Avatar for Gentleman
0
143
Member Avatar for Gagless

I was trying to see if my code for copying an array worked when I got this scary looking error message: Debug Assertion failed! Program: ...dio 2008\Projects\Test_Prep\Test_prep.exe File: f:\dd\vctools\crt_bld\self_x86\srt\dbgdel.cpp Line: 52 Expression _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) Here's my testing code and the function I wrote: [CODE]int main() { const int MAX_SIZE = 5; …

Member Avatar for faust_g
0
136

The End.