199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sfrider0

I created the first method, which gets and displays all the links in a web page in a listView when a button is pressed. I found the second method on a site that supposedly checks to see if a link is valid. I need help on incorporating it into my …

Member Avatar for sfrider0
0
208
Member Avatar for Awais Ahmad

I want to writer a program in which i input an array? let the array i entered is : 4 1 2 3 The prigram can take values and find the positions of the character in the array such that the smallest on 0 position and so on. The result …

Member Avatar for Murtan
0
119
Member Avatar for java_girl

Hi. This is NOT a homework assignment (self-interest only). The exercise asks me to write a function which accepts two strings and returns a pointer to the longer of the two. [code language="C"] #include <stdio.h> #include <stdlib.h> char* longer( char str1[], char str2[] ); char* str_ptr; int main( void ) …

Member Avatar for devnar
0
11K
Member Avatar for nishant52

I want to pass my form data to default file of a directory. For eg:- My default file for a directory is "Default.php". If i give, <form action="Directory"> </form> , then the form data should be passed to "Default.php". Is this possible ?? If so how ??

Member Avatar for xarz
0
140
Member Avatar for slimjimmer

Hi, In this piece of code in my program I am receiving the following error request for member âyâ in something not a structure or union. [code=c]struct intpair { int x ; int y ; } ; struct intpair makeintpair(int x, int y) { struct intpair temp ; temp.x = …

Member Avatar for Luckychap
0
100
Member Avatar for ruelk

Hello all. I am teaching myself C# and I have been fairly dedicated to solving my own problems. However, for some reason I am just stumped. I have a main form that manages alot of data. To insert data into the form you push a button to bring up a …

Member Avatar for ecoloney
0
198
Member Avatar for jcafaro10

This is probably an easy problem to solve but I'm having a bit of difficulty. The error is UnboundLocalError: local: "switch" and that's all the error says. The line refers to the line switch = - switch in the following code: [CODE] boundary = game.getBoundary() game.setBackground(java.awt.Color.black) level = 1 maxX …

Member Avatar for jcafaro10
0
183
Member Avatar for DemonGal711

I have to read in values from a file and output only the ones that past the test. However, I'm not sure how to compare a few of them. I need to skip the word if it ends with '\n', '\t', or a space. So, how exactly would you handle …

Member Avatar for DemonGal711
0
82
Member Avatar for christiangirl

This program is all working except when a user chooses the same file as before it needs to show both orders in the file but it is only showing the latest one. [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /** * Program that allows user to select a …

Member Avatar for christiangirl
0
138
Member Avatar for addsf1

I keep getting this message what is wrong with my sacript??? Parse error: syntax error, unexpected $end in /home/sites/thefieldinggallery.co.uk/web/contact_form.php on line 65 here is the php script: [code=php]<?php /* subject and email Variables */ $emailSubject = 'Crazy PHP Scripting'; $webMaster = 'info@thefieldinggallery.co.uk'; /* Gathering Data Variables */ $nameField = $_POST['name']; …

Member Avatar for peter_budo
0
148
Member Avatar for DemonGal711

I have to make a program that reads in words, deletes certain ones, stores ones that pass, and then count the total. He didn't exactly specify how the words would be coming it, but I'm assuming that if a space at the end of the word is bad, that it's …

Member Avatar for DemonGal711
0
100
Member Avatar for mmonclair

I'm having some difficulty with a query I'm trying to set up. What I'm trying to do is set up a query that will populate a table that shows a list of all tests offered on the site that are active, and then show the completion status of the user …

Member Avatar for mmonclair
0
162
Member Avatar for websurfer

Hello, all: was wandering, how can I have php create a thumb frame of a movie?? (like youtube where only a frame of the movie appears which then when you click takes you to the movie itself to play...) I am looking to create a small gallery of movies, but …

Member Avatar for digital-ether
0
337
Member Avatar for JackDurden

How would I delete one char from a string? [CODE]string aWord = "question?"; while(aWord[i]) { if(isalpha(aWord[i]))printf ("character %c is alphabetic\n",aWord[i]); else delete[i]aWord; i++; }[/CODE]

Member Avatar for cikara21
0
223
Member Avatar for Aamit

[code] <?php if(isset($_POST["send"])) { $name = $_POST["name"]; $email = $_POST["email"]; $msg = $_POST["msg"]; echo(" Hello!<br />"); if(empty($name)) { echo(" - There was no name!<br />"); } if(empty($msg)) { echo(" - There was no message!<br />"); } // IF THEIR ARE NOT EMPTY if(!empty($name) && !empty($email) && !empty($msg)) { //code for …

Member Avatar for digital-ether
0
123
Member Avatar for DaniVee

I have a selection field with a drop down list that is populated from a database that has over 2000 records. They're alphabetical and I want to allow the user to select the first 2 letters to move through the list. For example, BO would take them to the first …

Member Avatar for hhamdan
0
115
Member Avatar for Nicoleoo

the assignment is on [url]http://cs.ahsweb.org/text/LessonA10/Lab-[/url]... Below is what I wrote. It doesn't work. please help to correct if you can. package StringLab; public class StringUtil { public static String reverse(String str) { if (str.length() == 1) str.charAt(1); return reverse(str.substring(1) + str.charAt(0)); } public static boolean palindrome(String str) { String str2; …

Member Avatar for Ezzaral
0
76
Member Avatar for nikhath

Hi, i am developing a project on " Animation Data Structures Intelligent Teaching System". I am familiar with Core Java. I want to know what are the Concepts that i need to learn and that will help me in my project.

Member Avatar for Ezzaral
0
76
Member Avatar for Awais Ahmad

I want to write a program which take input and save the poistions of the array elements in another array. let if i enter an array A[0]= 4 A[1]=1 A[2]=2 A[3]=3 now the output array will hold 1 2 3 0 i-e the posistions of the array elements starting from …

Member Avatar for Laiq Ahmed
0
136
Member Avatar for ryan311

Private Sub Command1_Click() If Combo1.Text = "" Then MsgBox "Please Choose Supplier Code", vbInformation Combo1.SetFocus Exit Sub End If If Combo2.Text = "" Then MsgBox "Please Choose Product Code", vbInformation Combo2.SetFocus Exit Sub End If If Text1.Text = "" Then MsgBox "Please Input the Quantity", vbInformation Text1.SetFocus Exit Sub End …

Member Avatar for aktharshaik
0
172
Member Avatar for harrybern

Hi all I am working on application which displays text on the screen as one word of a line at a time. Now words are changing at a set speed of 240ms using ( system.threading.thread.sleep).But i want change words on the screen using left and right arrow key so that …

Member Avatar for harrybern
0
143
Member Avatar for Aravindasrat

I wnt to know about a code for hide a folder for windows xp.but i know to hide a folder with set attributes.if i hide a folder with using a attribute it will show in folder option.if someone changes folder option as show system folders and files then user can …

Member Avatar for debasisdas
0
111
Member Avatar for Q8iEnG

Hi guys.. :) I'm still on my way on learning and seeing examples of JavaScript Codes Today I saw this code (which depends on external file called *banner.js*) [CODE] <!-- Paste this code into an external JavaScript file named: banner.js.js --> /* This script and many more are available free …

Member Avatar for Q8iEnG
0
182
Member Avatar for axxouk

Author Table INSERT INTO Author VALUES (12,'James Smith' ); Using join conditions Find memebers (by name) who have ever borrowed a book written by certain authour (JAMES SMITH)

Member Avatar for axxouk
0
243
Member Avatar for drkessence

Welcome to the temporary page for the official Nightmare Productions C++ Contest. What do we hope to achieve by holding such a contest? We are attempting to spread the knowledge of C++ and hopefully get others interested in it. The contest description is below. In order to enter the contest, …

Member Avatar for drkessence
0
210
Member Avatar for gharish

[B][U]Introduction[/U][/B] You are going to design a program which will print out each line of its input that contains a specified pattern or string of characters. For example, searching for the pattern "Humpty" in an input text file that contains the following: In Sixteen Hundred and Forty-Eight When England suffered …

Member Avatar for Salem
0
138
Member Avatar for smorton123

I've been having more trouble with my lottery program. At the moment I've got the program to take in the users numbers (basically any numbers between 0-49 they want for the lottery draw). These are stored in the array 'user'. I also have the random numbers created by the program …

Member Avatar for jsosnowski
0
441
Member Avatar for davids2004

The code is pretty easy to understand what I am doing. You basically pick a number 1-4 and it will do either addition, subtraction, multiplication, or division. What I need it to do is after they do a problem it loops back and lets them do it again, until they …

Member Avatar for davids2004
0
171
Member Avatar for parhs

Hello. I have downloaded some ready projects and i saw that they seperate html from php. They are echoing everything through a class.For example they make a class for <html> tag for <body> etc. This is driving me insane.Whats wrong with just having some classes and then mix html and …

Member Avatar for parhs
0
149
Member Avatar for balakrishnan.kb

hi all how to run the multiple sql statements same time in mysql querybrowser? for example i am write two sql statements, i want run the second statements in mysql query browser, how to terminate the first statement thanks

Member Avatar for varmadba
0
97
Member Avatar for cVz

Hey people , i am trying to send an email, but for some reason its just not sending ... please help me out , here's my code [code] // trying this block of code try { // Looping through the rows in the datatable foreach (DataRow Row in dt.Rows) { …

Member Avatar for cVz
0
108
Member Avatar for bpacheco1227

I need to add student name and grade to a file. This is my section of code so far [code=VB] Private Sub addStudentNameGrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addStudentNameGrade.Click Dim swrStreamWriter As IO.StreamWriter swrStreamWriter = IO.File.AppendText(path & "studentgrade.txt") swrStreamWriter.WriteLine(Me.textStudent.Text, " ", Me.textGrade.Text) 'swrStreamWriter.WriteLine(Me.textGrade.Text) swrStreamWriter.Close() End Sub [/code] …

Member Avatar for bpacheco1227
0
125
Member Avatar for deepukng

Hi friends, Please someone how to create a dll in vb. net class library , how to register it and how to call it using sp_oacreate. Pls provide some sample codes.

Member Avatar for CornerAnalyst
0
2K
Member Avatar for tucksterble

Hello everyone. I've just signed up to 1 years hosting with Uk based Fasthosts. They provide support for Python scripting and a free 150MB MySQL database on their Linux package. My problem is that they don't seem to have the MySQLdb module installed. Is there any way I can get …

Member Avatar for jbennet
0
131
Member Avatar for tuse

Hi! I am using a code to echo a row in a database table using ajax. The code is working correctly. The ajax will send the response text as follows- [code] document.getElementById('outputText').innerHTML = httpObject.responseText; [/code] My question is how can I retrieve individual fields into separate Id's?

Member Avatar for tuse
0
81
Member Avatar for carobee
Member Avatar for VINITSONI

Dear Friends. Q:The problem in my coding is: I want to remove items from the string array if if does match with datareader field called time1 whose number in the Sql database is 4. Would u pls tell me whats wrong with my coding .? Its urgent.. With Regards, Vinit. …

Member Avatar for CornerAnalyst
0
177
Member Avatar for murdoduncan

Good day everyone and are there any Access geniuses out there who can help Jose and myself with some links, dates and logic for our HR database that we are stuck with? Cheers, Murdo PS My ady is <EMAIL SNIPPE>

Member Avatar for murdoduncan
0
178
Member Avatar for Prashant45

#include<conio.h> #include<stdio.h> #include<fstream.h> #include<graphics.h> #include<dos.h> #include<time.h> #include<STDLIB.H> // FOR EXIT #define ESC 0x1b /* Define the escape key */ void Pause(void) { int c; c = getch(); /* Read a character from kbd */ if( ESC == c ){ /* Does user wish to leave? */ exit( 1 ); /* …

Member Avatar for ArkM
0
2K
Member Avatar for karang

Hi I have declared the class in the header file class Test{ public: // Constructor Test(); // Variables IClassFact *m_pClassFact; }; But I am getting an error error C2143: syntax error : missing ';' before '*' And also I am getting this error error C4430: missing type specifier - int …

Member Avatar for ArkM
0
191
Member Avatar for dharam_05

Have made DSN, Now i want to make connect to database.. want a vb script for this. have to fetch data from data base Somebody help please.

Member Avatar for aktharshaik
0
163
Member Avatar for weshahy123

I am work with sybase Adaptive Server Enterprise (ASE) 12.5 I wanna connect sybase from visual basic 6 I found this connection string: Provider=Sybase.ASEOLEDBProvider.2;Server Name=myASEserver;Server Port Address=5000;Initial Catalog=myDataBase;User ID=myUsername;Password=myPassword; but i don not have the provider Sybase.ASEOLEDBProvider.2 I want this sostware driver and know how to connect sybase please help …

Member Avatar for aktharshaik
0
176
Member Avatar for ucan_aps

hai to all.. help me to solve my problem... im dng one project..in my project i do have one database.. it wil be updated for every 30seconds.. so i have to display the data from database with thier updates.i mean i would like to display data's in the client browser..whenever …

Member Avatar for ucan_aps
0
168
Member Avatar for cebubinary

Private Sub Command1_Click() Set rs1 = DB.OpenRecordset("Table1", dbOpenDynaset) If rs1.EOF = True Then MsgBox "Record is Empty" Else MsgBox "Got IT" rs1.MoveLast If Not rs1.EOF Then rs1.MoveFirst Do While Not rs1.EOF If rs1!Name <> "" And rs1!age <> "" Then Set rs2 = DB.OpenRecordset("SELECT Name FROM Table2 WHERE Name like …

Member Avatar for pnorten462
0
63
Member Avatar for Proseidon

Okay, I'm making a program that puts six word sequences into a hash table by taking the ascii value of each letter of the word and adding it to the sum, and multiplying it by a value, such as; num = num + int(firstName[nq])*(nq+1); in a loop. Now, I have …

Member Avatar for ArkM
0
156
Member Avatar for adam291086

Hello, I have a group of regular expressions <Element Generation at d66238> <Element Vitals at d662b0> <Element Network at d66670> <Element Hardware at d66eb8> <Element Memory at d6ac88> <Element Swap at d6e0a8> <Element Swapdevices at d6e238> <Element FileSystem at d6e5d0> <Element Vitals at d662b0> i need to get the word …

Member Avatar for Gribouillis
0
104
Member Avatar for stealthmode

Hi all, I put some initial values in a form field to help the user, i use php to extract the form data and send it via email. How do i get the initial value in the text field to stop appearing in the email. example, I have a name …

Member Avatar for sikka_varun
0
95
Member Avatar for aodpreacher

Hi i live in the new york area and does anyone know where in new york or have a look up resource on where to find java programming courses? anywhere to teach java during summer or during winter any place to look up information would be helpful..i tried google but …

Member Avatar for stultuske
0
114
Member Avatar for parhs

Hello.. I couldnt find anything for this topic. I know how to connect to a mysql database and close the connection.But that means that for every script a connection should be established and closed. Is this right and ok for big projects? About 200 concurrent users for example; Having a …

Member Avatar for pkpandit
0
129
Member Avatar for krhillery

[code]public Card getCard(int position) { /** * Gets the card from the specified position in the hand. * Null is returned if the position isn't in the hand. */ if(position>=0 && position < hand.size()) return (Card)hand.removeElementAt(position); else return null; }[/code] error message: return (Card)hand.removeElementAt(position); is highlighted, "inconvertible types"

Member Avatar for stultuske
0
109

The End.