199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for EmbeddedHelp

Hi all, I have created the following code that deletes a Vector entry. Currently it gives an error if you enter a string that is not present in the Vector. Can anyone recomend a way of looping back to the original text entry point, rather than terminating the program if …

Member Avatar for javaAddict
0
158
Member Avatar for Nandomo

The code works, I just want to see if someone can help me cut lines in main only. [CODE]#include <iostream> #include <sstream> #include <windows.h> #include <time.h> #include <string> using namespace std; struct tm * timeinfo; // Holds information about time in form of struct class Date { public: int m_nMonth; …

Member Avatar for ravenous
0
366
Member Avatar for anumash

This program is based upon the quadratic equation. If I enter a negative discriminant it prints NaN instead of "No real solutions". Any help will be appreciated. Why is it printing NaN twice??? What modifications are needed in the code? Please help!!! [CODE]import java.util.Scanner; class QE{ private double d=0; private …

Member Avatar for anumash
0
121
Member Avatar for erdinc27

hi guys..i have a bound datagridview..and i wrote that code to trigger when the cell content is changed [CODE] private void datagridview1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { MessageBox.Show("Content Has Changed"); }[/CODE] but it is fired 7 or 8 times when the form is loaded and it is fired again whenever i …

Member Avatar for Mitja Bonca
0
142
Member Avatar for chabo

hello guys....if anyone can help me....i need to Save Info From A dataGrid Into an Excel File using Save Button....i am using vb 2010 and 10x from now

Member Avatar for chabo
0
291
Member Avatar for holmiboii

Hallo daniweb!, Im new here *hehe* anyway I've been working on our companys website for a while now but I just cant get it to work... the error is @ the 26:th line. btw we're using: Cirtex hosting the defination "myusername" and "mypassword" is in the prev. .php file (main_login.php) …

Member Avatar for holmiboii
0
236
Member Avatar for suman.great

My script is as follows : [COLOR="Red"]echo " enter the directory path of file " read DIR_PATH path=$DIR_PATH cd $path echo "">/tmp/df_mac echo " enter the name of file" read EXCEL_FILE echo $EXCEL_FILE src_file=$EXCEL_FILE count=`expr 1` one=`expr 1` while read line do IDX=`expr index $line \/` echo $IDX echo $line …

Member Avatar for suman.great
0
171
Member Avatar for standa333

Hello, i´m beginer in XSL and i need help. In attachment, is source xml and my xsl. I have problem with filtering element date. Because, when i run transform result is duplicate. Can you help me? thx Stan

Member Avatar for standa333
0
134
Member Avatar for newbiecoder

Hello everyone, I got an error from the code which I am copy-pasting from a textbook. Could you please tell me what I am doing wrong? Here are the codes: login.php: [CODE]<?php session_unset(); ?> <html> <head> <title>Please Log In</title> </head> <body> <form method"post" action="http://localhost/movie1.php"> <p>Enter your username: <input type="text" name="user"> …

Member Avatar for newbiecoder
0
206
Member Avatar for shobhit25

hey Guys,:) i m new to web development...n want to learn Drupal:-O :confused: ...so any one can help me:'( .. Thanx in advance:)

Member Avatar for HemantPHP
0
75
Member Avatar for arctushar

Hello I m a civil Engineer. I have little bit knowledge on php. I want to make a web application. Which will be easier. Drupal module creating or indivisual php application. Please Suggest me

Member Avatar for HemantPHP
0
106
Member Avatar for six_sic6

Hi, I can pass an array through jquery ajax. [CODE] var regSubCodeArray = new Array(); var temp = 9; var i; for(i=0;i<temp;i++) { subname = 'sub'+i; subcode = 'sub_code'+i; subcredit = 'sub_credit'+i; regSubCodeArray[i] = document.getElementById(subcode).innerText; } $.ajax({ url: "testArray.php", type: "GET", data: "page="+regSubCodeArray, cache: false, success: function (html) { $('#ttl').html(html); …

Member Avatar for pritaeas
0
2K
Member Avatar for dos_killer

i am trying to implement a simple keylogger... my code works fine and is able to detect simple keystrokes.... the problem that im experiencing is that whenever a key is pressed it remains pressed forever even after i release the key unless i press some key again...and if i try …

Member Avatar for KonkaNok
0
148
Member Avatar for Imratzio

Hi all. Im building a shopping cart using an online tutorial in youtube, but i have an error [CODE]<?php if(isset($_GET['action']) && $_GET['action'] == "add"){ $id = intval($_GET['id']); if(isset($_SESSION['cart'][$id])){ $_SESSION['cart'][$id]['quantity']++; } else{ $sql2 = "SELECT * FROM products WHERE id_products=$id"; $query2 = mysql_query($sql2); if(mysql_num_rows($query2) != 0){ $row2 = mysql_fetch_array($query2); $_SESSION['cart'][$row2['id_products']] = …

Member Avatar for Imratzio
0
247
Member Avatar for akil007

I have the Sitemap for Menu.like <sitemap url="" title="Admin" roles="admin"> <sitemap url="~/Rooms.aspx" title="Rooms" roles="admin"> ......................... ......................... </sitemap> Now When I am Login with customer then Rooms.aspx and others are not seen but parent node "admin" is seen which not required then what to do "admin" is seen only for admin

Member Avatar for akil007
0
99
Member Avatar for stephy1

java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.[CODE] String id= t1.getText(); int c1=Integer.parseInt(rc1.getText()); /* rc1 is a radiobutton */ statementobj.executeUpdate("Update tablename(fieldvalue) values('"+c1+"')where ID='"+id+"'"); [/CODE]

Member Avatar for stephy1
0
194
Member Avatar for ypks_destiny

I want a text field which should have database values....(like dropdown list) from that list i can select text which is in database... Can any one help me out its very urgent.......

Member Avatar for ypks_destiny
0
694
Member Avatar for KKR_WE_RULE

The output I am getting is : [CODE]You will be entering the names of ten students their corrsponding marks in Physics, Chemistry & Maths. Enter the name of the student : student1 Enter the marks in physics of STUDENT1 : 43 Enter the marks in chemistry of STUDENT1 : 54 …

Member Avatar for KKR_WE_RULE
0
142
Member Avatar for ypks_destiny

I want a text field which should have database values....(like dropdown list) from that list i can select text which is in database... Can any one help me out its very urgent....... once see [url]www.justdial.com[/url] under "City" text box i want exactly like that ...i also want to match the …

Member Avatar for pritaeas
0
825
Member Avatar for NutanGadakh

Can any one tell me javascript for pop up text on mouse rollover on image like this site SNIP

Member Avatar for pritaeas
0
149
Member Avatar for pssubash

Hi, I created a class named [B]Test.java[/B] [CODE] public class Test { public Test() { System.out.println("Testing......"); } } [/CODE] It sucessfully compiles. Then i create another java class [B]Menu.java [/B]and here i trying to create an object of the Test class. [CODE] class Menu { public static void main(String[] args) …

Member Avatar for javaAddict
0
328
Member Avatar for ksquared

I want to pass array[x] to a variable so that I can use the variable in .innerHTML. I've researched and not found a reference. Any help appreciated. Big thanks.

Member Avatar for ksquared
0
99
Member Avatar for emilio

hi I'm trying to implement a custom forms authentication based on existing objects. i have created the following classes classes: [CODE=c#][Serializable] public class MyIdentity : IIdentity { // my custom members and properties } [Serializable] public class MyPrincipal : IPrincipal { // my custom members and properties }[/CODE] i'm using …

Member Avatar for emilio
0
109
Member Avatar for ub007

Hi, I got this code snippet with the following usage: [CODE] def main(): # sample usage manager = LoadManager() manager.msg = ('www.example.com', '/') manager.start(threads=5, interval=2, rampup=2) if __name__ == '__main__': main()[/CODE] Works fine,but i would like to supply the following arguments through command line: msg threads interval rampup Plz could …

Member Avatar for richieking
0
228
Member Avatar for shiningstar100

hello can someone please advise as to how can i insert tab after every word while inputting it in a file? i have to read all the lines in a file. the file has tables. there are random spaces between the words. Output is to put this table to another …

Member Avatar for richieking
0
82
Member Avatar for kiko_
Member Avatar for suther

Can anyone give suggestion about Perl Script for Automation Testing(check http request & response).with some sample code.

Member Avatar for suther
0
146
Member Avatar for stroper

I am making a console application. I want to make a method to stop the application. Can anyone help please. This is my code. [CODE]public void menu() { System.out.println("1 to go to menu help, 2 to go to head menu 3 to stop"); int optie = scanner.nextInt(); switch (optie) { …

Member Avatar for stroper
0
129
Member Avatar for memory100

have pivot table set up in report format with various fields from a CRM database. I want to clear blank data in the cells when the user click in the pivot table cell to open a certain cell to view the data that is whtiin the pivot table. it creates …

Member Avatar for memory100
0
159
Member Avatar for xuexue

could you give me a syntax for insert into using db2 as the database and vb6 as it's front end? i am trying to insert a numeric value to my table coming from a host variable in vb6, however, i do not get the proper syntax for it..could you help …

Member Avatar for AndreRet
0
124
Member Avatar for elsiekins

Hi, i have: [CODE]string letter; cout << ">Please enter a letter: \n>"; getline(cin, letter);[/CODE] What i am trying to work out is how to restrict the user for only entering one letter - has to use a string due to being used in a function later which only takes a …

Member Avatar for elsiekins
0
176
Member Avatar for yamot47

Below is my code can you debug it?? when i try to search on my search box it only show the data equal to the input box but when i clicked the pagination all the data in the database show i only want to show the data that been search …

Member Avatar for yamot47
0
140
Member Avatar for mangopearapples

Hi, for some reason, my JScrollPane isn't working with mt JTextArea. Probably the most important part: [CODE] JTextArea TextArea; JScrollPane scroll; TextArea = new JTextArea(); scroll = new JScrollPane(TextArea); add(TextArea,BorderLayout.CENTER); add(scroll,BorderLayout.LINE_START);[/CODE] Whole code if you're interested in what I'm making: [CODE]import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.BufferedWriter; …

Member Avatar for mangopearapples
0
280
Member Avatar for jkoske

This is giving me a segmentation fault in the noBucket() function. I don't see why. Does it having something to do with it being a const function? My other accessor functions are working fine and they are declared exactly the same with just a different name. The files are longer …

Member Avatar for jkoske
0
216
Member Avatar for newgeekintown

hello guys, I am doing a project that deals with the mining and pattern finding from a medical database. But the problem is that I can't get a medical database. If any of you please help me getting a one, will be a great help for me. In other case …

Member Avatar for debasisdas
0
87
Member Avatar for eduard77

I have a vector that with your help I succeeded to make it work just fine. Now I want to make the same vector to work with float values but just doesn't want to make me the mathematics with float numbers. Is adding only the integers and not the float …

Member Avatar for eduard77
0
112
Member Avatar for 123mehran

Hi Guys I've made a id number textbox and wanna when users typing characters the server tell them type digits what should i do?

Member Avatar for fawadkhalil
0
100
Member Avatar for yHobZ16

We need little help for our project website. Please help us. We need a code for mouse hover in ASP.NET. For example, every time the mouse is over the image there is a pop-up image in its side. We'll wait..Thank you very much!

Member Avatar for fawadkhalil
0
344
Member Avatar for xuexue

front end: Visual Basic 6.0 [CODE] Dim intAmount as integer intamount = val(txtamount.text) [/CODE] Back end: AS/400 db2 library: CPALLIB field: amount type: Numeric Len: 9 Decimal: 2 value: 100000 The problem is that when i insert new record to my database for this field: (amount), the value is 100000. …

Member Avatar for debasisdas
0
228
Member Avatar for SacredFootball

Hey all. I'm trying to learn stack operations and so far, I believe I've gotten push() and pop() down. I seem to be stuck on copy, however. I cannot get a check for empty to work correctly. [CODE] typedef struct _node { payload data; struct _node *prev; } node; int …

Member Avatar for jonsca
0
97
Member Avatar for Armistice

So i'm not looking for anyone to give me code on how to do this. I would just like a tip or two. I have a .txt file with a deck of cards in it saved into a card struct like : [CODE]struct card { char suit; char value; };[/CODE] …

Member Avatar for Armistice
0
354
Member Avatar for carinlynchin

hi, i have no idea why this isn't working....I placed some system.out.println's for debugging purposes and what I found is that after entering the "new game" method, thethe message shows in the console, but then the random initialization occurs, after which I placed another system.out and its not showing which …

Member Avatar for carinlynchin
0
203
Member Avatar for denmarkstan

i have followed all the instructions to download and install vwd2010 with sql server2008, but to no success. please let someone help me here please. thanks!

Member Avatar for questpond
0
148
Member Avatar for sj5536

How do i count space between two string in java for ex. String s = "This is my car"; i have to count number of space between this and is , is and my, and my and car.

Member Avatar for ztini
0
2K
Member Avatar for raschko

Issue involves: python 2.7 pil pyopengl pyside In the midst of developing a small drawing test, I've run into a situation involving line computations. Currently the drawing test works, but only enables singular point drawing at the cursor position. [IMG]http://i246.photobucket.com/albums/gg94/Braschko/Forum%20Posts/Screenshot-1.png[/IMG] I've seen python interpretations of [URL="http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm"]Bresenham's line algorithm[/URL], which works …

Member Avatar for raschko
0
165
Member Avatar for vin24
Member Avatar for ahtaniv

[CODE]class A { public: int a; A() : a(100) { } }; class B : public A { public: int b; B() : b(200){ } }; int main() { A a; B *ptrB =(B*)&a; cout<<ptrB->b<<endl; // Is there a way to get this to print 200?? }[/CODE]

Member Avatar for ahtaniv
0
278
Member Avatar for SolidSora

I'm supposed to use an instanceOf for an assignment, and it says the type is incompatible. Here is my code: package City; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author Brian */ public class City …

Member Avatar for ztini
0
97
Member Avatar for Acidburn

Hi guys, I've started learning SQL after spending several years in the industry. I've got a table defined ... [code] CREATE TABLE [dbo].[Computer]( [Id] [int] NOT NULL, [Name] [nchar](10) NULL, PRIMARY KEY CLUSTERED ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS …

Member Avatar for darkagn
0
106
Member Avatar for jordan0420

Im building a database to hold files i am using anydbm and what i would like is something that does this: [CODE= Python] import Tkinter import anydbm import tkFileDialog file = tkFileDialog.askopenfile(parent=None,mode='rb',title='Choose a file') print file print str(file) db = anydbm.open("database", "c") # db["1"] = str(file) for file in files …

Member Avatar for jordan0420
0
159

The End.