64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for LizzyJo

Hi. I am new to this site so I hope you will all be able to help me with my problem. I am just starting to learn JavaScript so any help/feedback would be greatly appreciated. I have to make a form that if you put a temperature in a textbox …

Member Avatar for LizzyJo
0
87
Member Avatar for love_dude1984

hi.. im having an issue with a table's border..im dev. an asp.net website,in which im retriving some images from the database & showing them into a datalist. i hv used 18 datalists in a table for the proper alignment of the datalists & images. now, my problem is, when i …

0
100
Member Avatar for bamcclur

[CODE] //////////////////////// /////counter.h file///// //////////////////////// #ifndef _COUNTER_H #define _COUNTER_H class Counter{ private: int counter; int limit; static int nCounters; public: Counter(int arg, int arg); void increment(); void decrement(); int getValue(); static int getNCounters(); }; #include "counter.cpp" #endif ////////////////////////// /////counter.cpp file///// ////////////////////////// #include <string> #include "counter.h" Counter::Counter(int a, int b){ counter=a; …

Member Avatar for bamcclur
0
451
Member Avatar for Vivek_1986

HI!, i'm using VB.NET 2005. I want to use OleDbConnection in my .net application but it is not showing in the 'Data' section of the 'toolbox'. is there any way to import it to the toolbox. NOTE: (Also OleDbDataAdapter, SqlConnection,SqlDataAdapter, etc are missing in toolbox) Waiting for reply newbee Vivekanand

Member Avatar for Rakesh_Sonu
0
1K
Member Avatar for crazyboy

hi friends ... i want help regarding file management in windows. what i want to do is , Keep track of all files and folders created or deleted during a period of time. for example , during 5 to 6 pm somebudy else is using my computer. so at that …

Member Avatar for crazyboy
0
196
Member Avatar for sam023

i m updating 3000 records in on query after few sec.. page shows network timeout...!! how to get rid of it.. thanks

Member Avatar for network18
0
84
Member Avatar for VAMPResearch

I am trying to create a page that will look up values from a table to fill in drop down boxes, i have this working. Now when the user selects options and presses a button i would like these values to get written to a table. This code is my …

Member Avatar for venkat0904
0
137
Member Avatar for new programer

Hello all, I did this program below, it is meant to get a student name then 5 of his/her grades sums them up in a void function and calculate the average but outputs the average from the main the problem is that the loop goes on and prints the prompt …

Member Avatar for ScottieF
0
168
Member Avatar for redmaverick

[code] public void init() { // Assign values to the rectanagle coordinates. // Add the MouseListener to your applet } public void paint(Graphics g) { // Rectangle's color g.setColor(Color.green); g.fillRect(rect1xco,rect1yco,rect1width,rect1height); g.setColor(Color.red); // When the user clicks this will show the coordinates of the click // at the place of the …

Member Avatar for redmaverick
0
88
Member Avatar for confusedndazed

My question: What is the output of the code corresponding to the following pseudocode? [code=text] Set y = 0 For (i = 0; i<=6; i=i+3) For (j = 0; j<=15; j=j+5) Set y = y + 1; End For (j) End For (i) Output y [/code] This is what I …

Member Avatar for rafta
1
124
Member Avatar for KRal

// I am new to C++ and can not seem to get the falling man to output to the screen. Any help would be greatly appreciated. [code] #include <iostream> #include <windows.h> using namespace std; void DrawBar(char guess); int main() { char solution[8]; //holds solution char blank[8]; //holds "*"'s for unsolved …

Member Avatar for KRal
0
186
Member Avatar for plobby

I am working on some homework right now and the program has to return two specified values depending on the key value the user enters. I only had to write the bottom portion of the program as the top portion was given to me as a shell. It runs but …

Member Avatar for plobby
0
129
Member Avatar for _dragonwolf_

I am writing a simple program that is supposed to take a user input and convert it to char and for each char it should change it to the designated change. I'm using switch statements to do this. Ex. blue b = bravo l = llama u = union e …

Member Avatar for jasimp
0
110
Member Avatar for sonial8

Hi I have a text file which has the following: 'username=sonia\n', 'password=password' I want to split sonia and place it in a variable called username. I was able to accomplish the following but could not remove the new line characters. text = 'username=sonia\n', 'password=password' text[0].split('=')[1] This returns 'sonia\n' So now …

Member Avatar for sonial8
-1
158
Member Avatar for gispe

Hi! im startin programmin in vb.net. in the program im doin now, im workin with a global variable 'public library as new biblioteca' that has should be a list of books that user wants to load. thing is that when i try to delete a book, i have to check …

0
80
Member Avatar for Kaotic07

Hello again, I'm having trouble with a program that I have to write involving classes and arrays. Essentially i have to create a class Theater, which I am not sure how to do. The theater has 15 rows with 30 seats per row, and each row is assigned a price …

Member Avatar for Kaotic07
0
109
Member Avatar for duke.tim

this is a simple example of a problem I have been having with differing programs, i am using linux ubuntu 9.10 and codeblocks 8.02 . this is the code [code] #include <iostream> using namespace std; int main() { int hiya; cout<<"hello world \n"; cin.get(); cout<<"enter a number \n"; cin>>hiya; cout<<"you …

Member Avatar for Nick Evan
0
261
Member Avatar for Dum_

Hi, i would like that when pressing the key example "M" to call some code. Same as Ctrl+Alt+Delete and TaskManager but in my case i have process in background which maybe can be used for this?

Member Avatar for Geekitygeek
0
182
Member Avatar for Mouche

This is a split from another thread. I'm trying to think of a good way to simulate action other than just a hit/miss list. I want more complicated results andalso so that the character doesn't always die... Hmmm... okay. So I think I would do it like this: my_str = …

Member Avatar for python user
0
267
Member Avatar for GTJava

Hey, getting a new error in my code... Its almost done, cant figure out what is wrong with this. ERROR: non-static method isPrime(int) cannot be referenced from a static context [CODE] import java.util.Scanner; public class primenumbertest { public boolean isPrime(int x){ int divisor = 1; do{ divisor += 1; } …

Member Avatar for GTJava
0
151
Member Avatar for CaffeineCoder

Greetings all! I'm facing a problem that's been throwing me for a loop for a while now. I'm implementing an old VB application that someone else wrote a long time ago onto a VM. I've gotten past a few different issues/errors just to get new ones (that's the name of …

Member Avatar for CaffeineCoder
0
161
Member Avatar for TechSupportGeek

Hello guys and gals of the DaniWeb community, this time I need help in how to save text to a file in the text editing application I created. Well, I tried using the code below but it didn't do the work: [CODE]If (RichTextBox1.Text Is Nothing) Then MessageBox.Show("No text to save!") …

Member Avatar for TechSupportGeek
0
152
Member Avatar for k1w1dad

I have a script for renaming files, but can not seem to iron out the bugs. I am trying to rename a list of files: File1.File1 File2.File2 etc I need them to be renamed to: File1 File2 etc This is the code so far: [code] import os import sys import …

Member Avatar for Gribouillis
0
206
Member Avatar for Jay V.

The program runs perfectly, however I am having an issue adding a discounted price. Another thing I noticed when I run the program is that the switch statement doesn't calculate the discounts at all. [CODE]// DiscountPrices.java - This program calculates total cost for discounted items. // Input: Interactive. // Output: …

Member Avatar for jasimp
0
3K
Member Avatar for ym_chaitu

Hai I have some html files and i would like to display them in a random manner using the php. can any one help me out..I have been trying this one.. but it is not working.. [CODE]<?php $dir="./clock/"; $nimg="10"; $itype="html"; $rnumb=rand(1,$nimg); echo "<a href=".$dir."clock".$rnumb.".".$itype."></a>"; ?> [/CODE]

Member Avatar for network18
0
1K
Member Avatar for dejanbl

Hi, i need some help, i need to delete some data in DBF file, and i have this code... but when i execute it .. nothing happends? Dim connectionString As String connectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=D:\Documents and Settings\dmarinkovic\Desktop\Data1\FP550_EO022450;Extended Properties=dBase IV" Dim dBaseConnection As New System.Data.OleDb.OleDbConnection(connectionString) Dim cmmd As …

Member Avatar for zortec
0
237
Member Avatar for brightsolar

[CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Collections; namespace CoinsExercise12StephenBarDev { public partial class FrmStephensCoinage : Form { Array ValueOfCoins = Array.CreateInstance(typeof(String), 101); double CoinInput; public FrmStephensCoinage() { InitializeComponent(); ValueOfCoins.SetValue("0.00", 0); ValueOfCoins.SetValue("0.01",1); ValueOfCoins.SetValue("0.02",2); ValueOfCoins.SetValue("0.03",3); ValueOfCoins.SetValue("0.04", 4); ValueOfCoins.SetValue("0.05", 5); ValueOfCoins.SetValue("0.06", 6); ValueOfCoins.SetValue("0.07", …

Member Avatar for Geekitygeek
0
100
Member Avatar for RoyMicro

Hello There seems to be different methods to create a text file in C#. I am getting a byte array from USB device. I need to store this as text file which is to be read, updated, and saved for future usage. The data comes in different packets not in …

Member Avatar for Geekitygeek
2
191
Member Avatar for ayesha789

hi every body, i am sure its not that much hard but somehow i stuck in situation which look very much unclear to me. in fact i have a table through i am selecting different records each records will be printed with the checkbox what i want to insert checked …

Member Avatar for ayesha789
0
105
Member Avatar for lukerobi

[code] class MyList(list): def __new__(cls, *p, **k): if not '_the_instance' in cls.__dict__: cls._the_instance = list.__new__(cls) return cls._the_instance def append(self, name): if name not in self: list.append(self, name) def extend(self, names): for name in names: if name in self: continue list.append(self, name) def remove(self, name): if name in self: list.remove(self, name) …

Member Avatar for Gribouillis
0
104
Member Avatar for lwestj

I'm working on a n-tier solution with VB.Net 2008. In this solution I have 3 projects started (the UI, BLL and DAL). I have the BLL referenced in the UI and the DAL referenced in the BLL. What I cannot do is use a User class in the BLL in …

0
70
Member Avatar for skulkar

Hello All, I work on PL/SQL web applications with oracle Application Server. I wish to start using some of Ajax features in my applications. Do I need to perform any application/db server side configuration changes to accommodate Ajax implementations? Your suggestions will be of great help to me. Thanks in …

Member Avatar for Thirusha
0
110
Member Avatar for levsha

I retrieve three pieces of data from my MySQL table and need to pass one of them as a parameter in a link to a dynamically populated .php page and two of them use as the link text. The echo statement below is not working. Could you please see what's …

Member Avatar for levsha
0
140
Member Avatar for Tales

I'm making a project in Visual studio 2008. The details of the project are: - It is a MFC Application - The application type is Dialog based with Use HTML Dialog enabled - The project style is MFC standard and... - The use of the MFC is in a shared …

Member Avatar for Tales
0
234
Member Avatar for ceyesuma

The name of this question is “three JSF questions” Hello and Thank you in advance for any assistance. [B] System info: [/B] Netbeans,MySQL,glassfish [B] The Purpose of this post is: [/B] have someone look at the excel file (subscribe_app_notes2)at : [url]http://cid-b5cb457363230793.skydrive.live.com/browse.aspx/Public[/url] [B] The functionality of this code is: [/B] I …

Member Avatar for ceyesuma
-2
89
Member Avatar for Gatayo

Design an oracle for the following JavaScript function. 2. Generate a test case set for this function and provide a coverage analysis report for your test case set. The JavaScript function: [CODE=javascript]function purchaseSong(username, password, songId) { // first authenticate the user if (checkCredentials(username, password) == false) { alert('The username or …

Member Avatar for Gatayo
-1
111
Member Avatar for Mattpd

My ultimate goal is to fill an array with user inputted positive and negative numbers. This script I wrote is very limited, but it should give you an idea of what I am trying to do. Basically, I ask how many numbers and then reserve 3 spaces for each number …

Member Avatar for Mattpd
0
185
Member Avatar for sdgundamuse

i am trying to make a page that able to search the data that store in the sql database, i would like to have a field search which enable the user to choose the field they wan to search. the problem i facing is i dunno how to submit the …

Member Avatar for sdgundamuse
0
146
Member Avatar for Mattpd

I am trying to delete any line of text that contains "$npname" and the word "in." The script works if $npname is only one word, but if it is more than one work I get "error: unterminated address regex" How can I fix this? [CODE]sed '/'$npname'.*in/d' parts.txt > parts.tmp[/CODE]

Member Avatar for Mattpd
0
4K
Member Avatar for ylchen

Hi all, I'm new to working with C++ (I'm more a C programmer) and I have a question: I have a container class for a templated type T, which could be any scalar type, although the most commonly used ones are unsigned char and float. I have a function that …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for manofspider

clienthint.js [CODE] var xmlhttp; var parameters=""; function showHint(url) { var myform = document.forms[0]; if (myform != undefined) { parameters = getRequestBody(myform); } if (url.length == 0) { document.getElementById("txtHint").innerHTML = ""; return; } xmlhttp = GetXmlHttpObject(); if (xmlhttp == null) { alert("Your browser does not support XMLHTTP!"); return; } xmlhttp.onreadystatechange = …

Member Avatar for manofspider
0
284
Member Avatar for futhonguy

Hi I am wondering if i can move a field (with contents) from Table B to Table A. If so how can i do it? Any advise ?? Thank you very much..

Member Avatar for futhonguy
0
94
Member Avatar for Ineedhelpplz

So everything in my program works except for the main itself. The program is supposed to take in a file provided through standard input and print out the descending order of words followed by the frequency that they occur. I can do this individually line for line but am having …

Member Avatar for Ancient Dragon
2
157
Member Avatar for Calaesto

Hi, In my code I'm getting a weird error. It's caused by this piece of code: [CODE]response = SQLCommand.ExecuteNonQuery();[/CODE] The error: There is missing a ; at the end of the SQL-instruction. My eyes may be bad, but I clearly see a ; at the end of this piece of …

Member Avatar for DdoubleD
0
90
Member Avatar for Calaesto

Hi, I am trying to make a program that allows one to see a database (MS Access) and add items to the database. The database works perfectly (update and suchs) but the adding won't, sadly enough. The error I get is (translated as i'm using a Dutch version): Syntaxisfault in …

Member Avatar for mikiurban
0
140
Member Avatar for dmcadidas15

Im trying to access a variable in a list that is 3 places earlier in the list. For example list_1[dogs, cats, pigs, hamsters, kids]. If Im trying to access the word cats based on the position of kids how would I do that? I know list_1[4] returns kids and I …

Member Avatar for dmcadidas15
0
92
Member Avatar for kolosick.m188

I am having a slight problem implementing this code. What I need to do is take a list of 16 unsigned characters and permute the bits according to IPTable. 0 in IPTable refers to bit 0, 1 refers to bit 1, etc. Here is my code which isn't working. [code=c] …

Member Avatar for Dave Sinkula
1
107
Member Avatar for LiamOB

Hi All, I am getting the message "input string was not in a correct format" about the line " numline[i] = Convert.ToDouble(num);" The program is supposed to read a csv and convert the fifth line of the file to an double array. The line to be read in looks like …

Member Avatar for DdoubleD
0
549
Member Avatar for pankaj.garg

hi, i am making an program in VB6 with access database....m inserting dates in the database at random....and want a listbox to be populated with first 3 dates starting after a particular date.... eg. input - 6 jan, 3 dec, 15 feb, 12 march, 10 dec, 7 june, 5 may …

Member Avatar for AndreRet
0
138
Member Avatar for Ponomous

So this is a matching game, flip over two cards, if they match they stay up if not they flip over again. I have the matching system and coordinate system working. My problem is that when i use my array of zeros to "hide" the numbers, all that is ever …

Member Avatar for Ponomous
0
100

The End.