199,114 Archived Topics
Remove Filter ![]() | |
I'd appreciate if somebody could have a look at this code and tell me where the problem is. The program is meant to take a .txt file and split it in three different files: one with words of 1 to 4 letters, one with words of 5 to 7 and … | |
Hey, I've been busy coding combo boxes to filter a database but the problem is they don't work together. e.g. If i select a car type, it shows all the cars of that type but if i select blue in one combo box and a car type in the other … | |
function validate1(){ if(document.all.doc1.value == ""){ alert('Please select 1st Docoment !!'); document.all.doc1.focus(); document.all.doc2.value = ""; } var doc1 = eval(document.all.doc1.value); var doc2 = eval(document.all.doc2.value); if(doc2 < doc1){ alert('First Document number must greater than secondnd Document number!!'); document.all.doc1.focus(); document.all.doc2.value = ""; } the script above used to compare string between combo box … | |
Hi Guys I'm rusty and sticking after being ill for months. Could anyone help me to get this to work please. I've got it close but not close enough. Thanks in advance for the time given. Best FJW [code=php]echo $pricelow; echo $pricehigh; output_arrayBETW(); //$pricelow and $pricehigh correct BUT... Function output_arrayBETW(){ … | |
can anyone say me how to insert the string of combo box into the table in oracle... from VB pls anyone help me with the code....:sad: | |
i have been using adodc for searching for a client's details using the client number, but it would give me inexpected errors and bomb out of my programme. i have then resorted to searching using sql. the following code gives me this error::: [I][U]no value given for one or more … | |
v1. ADD, EDIT, DELETE, SEARCH CUSTOMER -customer number -name (lastname, firstname, middlename) -date of reservation(provided by system date) ITEMS -item code(auto-number) -item description -price A customer number is generated by the first letters of the first name, middle name and last name of the customer with the date & time … | |
Hi Guys, i have a code to display an image in a picturebox called MemberPics. this image is also saved into a folder D:\\pictures. My problem is eventhough the image is saved successfully, am not able to retrieve it in another form. I always have FileNotFoundException even when I can … | |
***************************************************** Write a program that will get some input from the user about a visit to an oil change service. The program will calculate the bill for the services requested. Prompt the user to input whether or not they want each of the services. You can assume the input will … | |
I have two files of huge data contains string and integers and i want to read from it and use it to count characters of the string for example name ending with letter "A" containing "oo" or having letter "A" as seconf letter. i need some methods from the String … | |
greetings to you all! I want to insert a flash object in my code.and i get validation errors. what is the best way of doing things.here is the code and below it the errors. pliz let me know how i can correct it. [COLOR=#0000ff][code] [COLOR=#0000ff] <[/COLOR][COLOR=#800000]object[/COLOR][COLOR=#000000] [/COLOR][COLOR=#ff0000]width[/COLOR][COLOR=#0000ff]="200"[/COLOR][COLOR=#000000] [/COLOR][COLOR=#ff0000]height[/COLOR][COLOR=#0000ff]="200"> <[/COLOR][COLOR=#800000]param[/COLOR][COLOR=#000000] [/COLOR][COLOR=#ff0000]name[/COLOR][COLOR=#0000ff]="movie"[/COLOR][COLOR=#000000] … | |
[code=c] #include<iostream.h> #include<conio.h> #include<stdio.h> #include<string.h> void main() { char s[100],z[10]; clrscr(); cout<<"Enter your name:"; gets(s); cout<<strupr(s[0]); cout<<"."; getch(); } [/code] what I am looking for is that when user input deniweb,then it should output [B]D[/B] please help Thanks | |
Hi, all! It's me again. And i'm idiot. I have in my table many-many articles. Their titles and anonses showed on page article.php [CODE] <?php mysql_connect($host, $username, $password) or die(mysql_error()); mysql_select_db($database) or die(mysql_error()); mysql_query("SET NAMES utf8"); $sql = "SELECT*FROM advicer ORDER BY id DESC LIMIT 4"; $result= mysql_query($sql) or die(mysql_error()); … | |
I would like help with making a program 'type' out the text as the program is running i.e. not having the entire line appear at once but letter by letter. | |
hello friends i m working on a project wherein we have to capture a photo using web cam for the web application.. can anybody tell me how we can do this. i have read many artical and found a code for the stand alone appli. from "http://www.mutong.com/fischer/java/usbcam/" but it is … | |
Please could someone just clear up, or point me to the right thing to read regarding mysql and php. Once you have made a query and saved it to results, I understand that the query accessed with a number of functions to extract that, such as mysql_fetch_array() and so on. … | |
This is my python script: [url]http://gsingh.pastebin.com/mc602006[/url] This is my setup.py file for py2exe: [url]http://gsingh.pastebin.com/m70a19449[/url] When I go to command prompt and run the .py file with the command, email.py message It works fine, it sends me an email with the message, which is what it's supposed to do. When I … | |
I have a program that creates a struct. It also has a class that creates a pointer to an array of structs that is created. I'm having trouble accessing the elements of the structs in the array, with the pointer. Below is a sample of the code. Struct definition in … | |
Please, I need some help with my hw. I have to create a program that stores the scores for a football team. I need to record the score by quarter for each of the 20 games. I have to initialize all games to 0. Then, the user is asked to … | |
hi every one i need help please i want a program to evaluate a postfix expression i have made a code for it . but it works just with numbers between 0 &9......but i want to use the program with larger numbers e.g: 20 30 + = 50 i will … | |
Ok, so I am trying to write a program that will solve simple math and physics problems, and am trying to use strings and words more, so my question is: is it possible to use a char in an if statement? I'm new to this so yeah. Here is what … | |
Hello Forum: I am trying to write a php script that will take as input a zip code and output the zip code with its respective city and state with the name of any companies/businesses in that zip code. Ok, I got this part working. The other part is that … | |
I need help writing a program that randomly picks a point in a 2D space. Then the user will be allowed to make repeated guesses which point was picked with feedback saying if the user is hot or colder on each guess. Thank you! | |
Ok, I know I'm probably programing in some kind of archaic way for C++ but my knowledge base is rather limited. I'm having problems with my input not being identified correctly (or however you would say it, rusty is me) [code]cin>>StatsChange; if (StatsChange == "Strength" or "strength" or "str" or … | |
here is my code [CODE=C] #include<stdio.h> #include<conio.h> #include<string.h> int main() { char A1[100], A2[100],c[100]; int n1,n2,i,j; printf("Enter string A1:\n"); gets(A1); printf("Enter string A2:\n"); gets(A2); n1=strlen(A1); printf("%d ",n1); n2=strlen(A2); printf("%d ",n2); char *p1=A1, *p2=A2, *p; p=(char*)malloc((n1+n2)*sizeof(char)); for(i=0;i<n1; i++) { *(p+i) = *(p1+i); } for(i=0; i<n2; i++) { *(p+n1+i)=*(p2+i); } int k2=strlen(p); … | |
How would i go about making a program wait before printing the next line? Keep in mind that i would like the next line to print automatically after a few seconds. Also if at all possible i would like to know how to make the text act like it is … | |
I have a problem with the dispose method. . .I got 3 java files with a class name: MainProgram.java MainPanel.java PageOne.java The MainProgram java extends JFrame. The MainPanel.java extends JPanel. The PageOne.java extends JFrame. The MainPanel.java is where all the actions and etc. are being set. The MainProgram.java calls the … | |
For example I ask the user to enter a 4 digits integer number. For example the user enter 4875. I want to display odd digits (7 5) and even digits (4 8). By Extract each digit of the number using integer division and store the results in separate variables. for … | |
Hello I want to send a dns packet to a dns server. I've already connected to the dns server but not able to send the packet in the right wy. Actually I don't know how to send? Here's the code.. [CODE]#include <winsock.h> #include<stdio.h> #include<string.h> #include <io.h> #include <sys/stat.h> int main() … | |
Hey; I'm trying to build a custom call API file so it makes it harder for hackers to attack my application. My question is do I have to put every custom variable like[CODE] $test = array(); [/CODE]through my API? How exactly should I go around to building a custom API? | |
Hi, I am trying to read a webpage, namely a PHP page that returns "true" or "false" depending what $_GET (Or is it $_POST?) information is sent. The URL it attempts to read will look like this: [ICODE]www.thesite.com/key.php?key=the_key[/ICODE] and the page will return a true or false. I currently have … | |
OK I'm making a script and I get this error and have no clue off have to fix heres the code all help is thanked: [CODE]import java.awt.*; import java.util.*; import java.util.List; import java.util.logging.Level; import javax.accessibility.*; import javax.swing.*; import org.rsbot.bot.Bot; import org.rsbot.script.*; import org.rsbot.script.wrappers.*; import org.rsbot.accessors.*; import org.rsbot.event.listeners.PaintListener; import org.rsbot.event.listeners.ServerMessageListener; import … | |
Please if any one knows how to change the default printer on control pannel-printer and fax permenantly, means when I go out from My VB6 program the default printer I set still as default one. Thanks and best regards | |
80X86 Speeding up word memory access. When the address of the first byte of a word lies at an odd address the processor must make two memory fetches for each byte of the word. But if the address of the first byte of the word lies at an even address … | |
Hello guys, I'm trying to make my PHP mailing script mail an html webpage. I've pasted the page code but I've been getting alot of error pages complaining about the tags in the html code (style, table width, etc) How do I get around this? | |
My website I'm building has various image Arrays, I have JS code passing data so an image in 1st page exp:[image5] loads into 2nd pages Array as [image5], it works in all browsers except Firefox where 1st page reloads to [image1] in 1st page Array. Being a newbie I can't … | |
I am busy with a project for fun and I am finding it tricky to set balues for mysql queries. If I do the following: [CODE]function CalcPostByTime(){ include 'DB_connection.php'; $result = mysql_query("SELECT ztime FROM blogpost;");[/CODE] What is the simplest way to set an array, which will be a return value … | |
I was given a template class code here and I have to add the code to a insert function in there, I have no real experience with templates, how would I go about doing this ? here is the template class code.cpp [code] // Implementation of the templated version of … | |
Hi I have a Datagrid with column(1) showing the date. The dates are being Displayed as 01-13-2009 (mm-dd-yy). That's how it is saved in the DB. I wouls like it to be displayed in the Datagrid in the following format Jan-13-2009. Can anyone help? Thank you | |
N00B. Is it possible to compile every line in a file except one? That line would be left in text mode inside the compiled file. Would the file even execute? I'm using gcc (g++). | |
Hello, I am new to C and am in need of some help. I am getting a warning, assignment makes pointer from integer without a cast. here is some parts of my code: struct BOARD { char *theBoard[8][8]; }; typedef struct BOARD Board; int main(int argc, char *argv[]) { Board … | |
N00B. Can I buffer cout, cout something and then cout the buffer? I've been googleing but did not find anything of this sort. [CODE]#include <iostream> using namespace std; int main (void) { cout << "cout output until this point"; string BUFFER; // I need to buffer the cout output until … | |
Hello, I am having a strange error when I try to delete my old charts in my excel workbook. Below is the code I am using to try to get the Workbooks property to work: [CODE] Sub Selecting_Charts() Workbooks("Op 70.xls").Activate Sheets("Charts").Select Workbooks("Op 70.xls").Charts.Select 'Error here! End Sub [/CODE] I keep … | |
Hi,Im having a hard time understanding the fundamentals of Object oriented programming.Ive made a really simple program that allows a user to enter a number, and then i have a function that doubles this number and returns it. But im still having the same errors that i had when i … | |
Hello, I am a newbee in C++. I am trying to have a connection setup and trying to access private varaibles of a class. Please look at my piece of code below. Any comments would be greatly appreciated. Basically, I want to access two private varaibles from MyClass into AnotherClass(myNewClass … | |
N00B. I cannot seem to get this right. [CODE]#include <iostream> #include <cstdlib> using namespace std; int main(void) { system(("sendmail -options" + EMAIL_TEXT)); return 0; }[/CODE] | |
Hi everyone, I'm a javascript/actionscript/java/ruby developer who's been given a project that must be done in Sharepoint. One of the tasks of the project is I have to write a console application that replicates data from the secure sharepoint site and pushes it out to a public site in a … | |
Hello, I'm novice in computer science , please bear with me. I have studied some embedded systems and now I have just started learning PC programming in C . My question is when one complies a C program it is converted into a binary file right? That is machine language, … | |
I have composed a Windows Forms Application with few Check Boxes and Install button on it as well. Now I just made a code for Install button's Event Handler which run application when button is clicked. Code is following, and was just made for test if everything works as supposed … |
The End.