199,114 Archived Topics
Remove Filter ![]() | |
Hello! I am trying to make a program that reads in two numbers from a file and turns one into an imaginary number and then does different math functions with them. I am trying to use overloaded functions to do them. I am not getting any errors with what I … | |
Hi There; I have a MS-SQL 2005 in my computer. There is a [I]person [/I] table, and this person table have three columns; [I]name[/I], [I]surname [/I]and [I]address[/I].They are nvarchar(50). I hold the data of my company on it. User can make some queries over it via HTML. PHP code does … | |
Hi everyone, I have a web application developed using php. I want to add a new feature in it. When the user searches for some book details, all the book details are displayed. Now when the user clicks on a book name in the search results, He will be redirected … ![]() | |
Hello, I would like to get message, or true result when DataSet get new record (new row). But, I always get message as "no". Button1 is add new record [CODE]Me.Table1BindingSource.AddNew() [/CODE] Button2 is save a record [CODE] Me.Validate() Me.Table1BindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.TestDataSet) [/CODE] Button3 should return "Yes" as new record has been … | |
Okay getting quite frustrated! I am trying to get an if statement to implement a pop up window when the user fails to enter any information in one of the JTextFields like fnameTF. Here the if statement but where do I place it to work in my program? [CODE]if (fnameTF.getText().length() … | |
I would like to know how you can input information from one array to another. For example String A[] A[0]= 2, 54, 6, 7 A[1]= 434, 32, 45 A[2]= 34, 45 A[3]= 20 Where all that are in "A" are actually seen as strings, and you want to input this … | |
Dear All, Here is my code i am generating data grid manually on run time i want to assign a default value to REC ST column, i have tried but it didn't assign default value please view the last line of this peace of code. [CODE] Dim clmprno As New … | |
I am trying to write a somewhat generic class for calculating rolling averages. It's generic in the sense that it needs to support all numeric datatypes (int, double, short and long). I'm a bit of a noobie to VB.Net and have run into a problem: [code] Public Class RollingAverage(Of T) … | |
I have created a table into my database which has a coloumn with datatype defined as DATETIME. The normal SQL date order is MM-DD-YYYY, however I need to enter it in format DD-MM-YYYY. Is it possible to insert into SQL SERVER database where field is formatted as DATETIME , a … | |
[CODE]#include<stdio.h> #include<conio.h> #include<stdlib.h> void Board(); void PlayerX(); void PlayerO(); void Player_win(); void check(); int win=0,wrong_X=0,wrong_O=0,chk=0; char name_X[30]; char name_O[30]; int pos_for_X[3][3]; int pos_for_O[3][3]; int pos_marked[3][3]; void exit(int status); void main() { int i,ch,j; char ans; /* clrscr(); printf("\n\t\t\t\tTIC TAC TOE"); printf("\n\t\t\t\t"); for(i=1;i<=11;i++) { delay(10000); printf("*"); }*/ do { clrscr(); printf("\n\t\t\t\tTIC … | |
here is a website that i had created in wordpress.now I want to make changes to the site but want to make changes offline,(at my local computer).So that the visitors can enjoy my existing site.I tried the following [CODE]Downloaded the website through filezilla. Made backup of data in .sql file … | |
Hi, I[B] have a problem with the following query select tbl_employee.E_Name,sum(tbl_Salary.Amt),tbl_Dpt.DeptName from tbl_employee inner join tbl_Salary on tbl_employee.eid = tbl_Salary.eid inner join tbl_Dpt on tbl_Salary.eid = tbl_Dpt.eid where tbl_employee.eid ='E101' When the query is executed,the following error is displayed "Column ' tbl_employee.E_Name' is invalid in the select list because it … | |
Here I am again! I am working on the program below that is calculating payroll but am kind of lost on how to program the reset button after the net pay has been calculated. Any and all help would be greatly appreciated. Thanks. [CODE]import java.io.*; import java.util.*; import javax.swing.*; import … | |
Hello Everyone, I wrote a function that allows me to retrieve data from a single SQL table and place it into 3 datagridviews. The problem i am having is as follows: * Whenever a user types something in anyone of the datagridviews that information is recorded in all three of … | |
I am writing a program, but I cannot find what is wrong with the code. Only need to show one MP3, or an error message if there are any missing fields or an incorrect entry for seconds. It is not storing information about previous songs; it just display the current … | |
Hi guys. I am now creating my sign up page and I would like to check if both name and email entered in page are already in the database. So far I have [CODE]if(mysql_query("SELECT members FROM name WHERE $_POST['name'] = '$name' and email WHERE $_POST['email'] = '$email'" ))){ echo "Sorry! … | |
i have written a program taking marks of 35 students and calculating their average.can somebody please help me find my mistakes.the compiler is giving errors errors:---------------------Configuration: t2 - Win32 Debug-------------------- Compiling... t2.cpp E:\coding\t2\t2.cpp(21) : error C2109: subscript requires array or pointer type E:\coding\t2\t2.cpp(21) : error C2679: binary '>>' : no … | |
Hello friends, I am looking for a bit of help. Here is the scenario. I am trying to compile sales data for a number of stores from multiple databases and import them into excel for the current month by day. I have a field for date and sales. The problem … | |
Hi everybody, I completed my scripts and I managed to compile them with py2exe. This script will edit some images and will save the output in a specific subfolder of the program (if the user will install it in the default location it will be something like c:\program files\MyProgram\output The … | |
Hi all, I'm building a shopping website that within the products' page, there's an HTML select that allows the user to choose what product type he wants to view. beneath the select, there's a heading followed by a div or a table created at runtime showing the product name, image … | |
Hey guys! I've created this program that allows the user to get a .txt file from anywhere in the hard drive and it displays the contents in the text area. My question is: how can I edit my code so that it only allows picture files to be selected(jpg and … | |
I'm trying to get the available disk space on a remote linux host using python. The best way I could think to do this would be to os.popen a df command, and use regex to get the available space from the output. I then need to apply a variable to … | |
Hi, This is the first time ever I post something about any programming language. Im just starting this semester with C language, so Im really new on this. This C code is a project we have for the class. We have to supply definitions for different functions. I have gone … | |
I would like to give me your help please.. I have connected my sql db with vb and I m trying to make a UI. My question is that when I write code in order to create datatables and I fill them with the results of queries I've created, where … | |
I'm writing a program has access to a database (a database where an other software stores data that users type). This database has several colums, but in my code, i need to use the two columns that describes where the data is from, and the the date when the data … | |
Hello everyone..I'm trying to access the methods of a WCF service from a pocket pc emulator..I added a Web Reference to the service and tried to access the method like this [code] WebReferenceService1.Service1 client = new WebReferenceService1.Service1(); MessageBox.Show(client.GetData(10,true)); [/code] ..but everytime i call the method..i get System.Net.WebException error saying "Unable … | |
.contains seems to return true for most things, even if one or two chars match. Is there a way to make it more restrictive? | |
I am trying to write to this file here [url]http://corporate.thechamberteam.com/livesearch/questions.htm[/url] I when i add it keeps going of the the html tags and the text ends up under </html> and also to to make the question bold just like on that page, and the answer Bold as in the same … | |
Hi All, Can anyone answer below question. when to use use DBI; and when to use use DBD? Thanks in advance | |
[CODE]<?php $posapp=$_POST['txtapplied']; $fname=$_POST['txtfname']; $mname=$_POST['txtmname']; $lname=$_POST['txtlname']; $month=$_POST['txtmonth']; $day=$_POST['txtday']; $year=$_POST['txtyear']; $age=$_POST['txtage']; $eadd=$_POST['txtemail']; $homenumber=$_POST['txthnum']; $cpnumber=$_POST['txtcpnumber']; $address=$_POST['txtaddress']; $religion=$_POST['txtreligion']; $birthplace=$_POST['txtbplace']; $height=$_POST['txtheight']; $weight=$_POST['txtweight']; $civilstatus=$_POST['txtcstatus']; $college=$_POST['txtcollege']; $course=$_POST['txtcourse']; $year=$_POST['txtyeargrad']; $db=mysql_connect('localhost','root','') or die ('Cannot connect to MYSQL!'); @mysql_select_db('dbriomra') or die('Cannot connect to database'); $query=mysql_query("Insert into onlineapplication values ('posapp', 'fname', 'mname', 'lname', 'month', 'day', 'year', 'age', 'eadd', 'homenumber', 'cpnumber', 'address', … | |
i am using jquery code and it is being called inside while loop. the output is correct for the first time but the output is already displayed for the second tym. plz help me solve this prblem. here is the code. [CODE] <html> <head> <script src="jquery-1.6.4.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready( … | |
Hi, I'm new to java but have some experience with C++ can anyone help me with a basic code to display inheritance? I'v chosen a Parent class Phone and a Child class Mobile and I want to simply use the display method from my parent class on the child class. … | |
[CODE]package com.abc.text; public class StringProcessing { /** * Returns the number of non-null strings in the set. * If null or a zero-length array is passed in, then zero is returned. * If a slot in the array is null, then it is ignored (not counted). */ public static int … | |
i am trying to send a file between a client and a server using sockets in C....well i see that there is a function sendfile(), but i donno its usage, can someone guide me with an example how to send a file and receive it..... | |
Hey all, I have the following HTML, adapted from a more complicated one I'm creating; [CODE] <HTML> <HEAD> <SCRIPT TYPE="TEXT/JAVASCRIPT"> function setup(ans) { lit = '' if (ans == 'anim') { lit = '<br><br>How many legs? ' lit = lit + '<SELECT NAME="q2" ONCHANGE="print(document.quest.q2.value)">' lit = lit + '<OPTION VALUE="">- … | |
im new to java so if im doing some thing the wrong way please let me know this is the class that connects to data base and grabs all the info from colum 1 and colum 2 that part works now when i try to either make it a useable … | |
I’m trying to initialize a combo box with the content of an INI file. Each line of the file contains a name for a website and the path to that site, tab delimited. I’m trying to read the file into a list so I can sort it etc. Visual studio … | |
[CODE] import java.util.ArrayList; import java.util.Scanner; import java.io.*; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.PrintWriter; import java.io.IOException; import java.util.StringTokenizer; /** * Write a description of class Auction here. * * @Bong Suk Ing * @20/10/2011 */ public class Auction { private int displayPrice; private int increase; private int … | |
"write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree showing in order and pre order traversal..once the tree has been built,present the user with a menu that allows huim or her to search the list for … | |
Hi, I am trying to write a program that will separate the digits of a non-negative integer and will print them each two spaces a apart but I have to avoid using arrays. For example if input is: 12345 then output should be: 1 2 3 4 5 I have … | |
Dear, I have a code of c# who simply insert data into database i have code that contains abyte data but runtime it insert query display the system.byte[] instead of byte data [CODE] private void showData_Click(object sender, EventArgs e) { String FileType; String PictureName; for (int i = 0; i … | |
Hi guys :D.. just wondering.. when I'm using scanner this is the code I use to ignore the case "to put in the do..while statement" [CODE]} while (choice.trim().equalsIgnoreCase("Y"));[/CODE] I've been looking all over the net. what code should I use if I'm using JOption.. can anybody please help me on … | |
[CODE]select * from Table where data=2.6[/CODE] After running the above query, db returned an empty result set. But Seen from table, there are many rows matching data=2.6 criterion. Here the type of 'data' column is FLOAT. If changing the value to an integer like 'where data=2', the matched result sets … | |
I have developed some simulations in C++ in the old Borland 3.0 version. They involve only simple mathematics. I need to develop some graphics for them. I need to display different moving images simultaneously. Say, three graphics windows at the same time. I am familiar with the BGI library. However, … | |
[CODE]Private Sub MainForm_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing If My.Settings.My_First_Build = True Then If OptionsForm.AutoSaveallOnExitCKB.CheckState = CheckState.Checked Then If Tab4RichTextBoxPrintCtrl.Modified = True Then SaveAsMenuItem1_Click(Me, e) Threading.Thread.Sleep(100) Else MessageBox.Show("Not modified") End If If Tab5RichTextBoxPrintCtrl.Modified = True Then SaveAsMenuItem2_Click(Me, e) Threading.Thread.Sleep(100) Else End If If Tab6RichTextBoxPrintCtrl.Modified = True … | |
[CODE]#include <iostream> using namespace std; class bike { public: bike () { cout << "Bike: no parameters\n"; } bike (int a) { cout << "Bike: int parameter\n"; } void color(int a,int b) { cout<<"Inside Bike Color"<<endl; } }; class ducati : public bike { public: ducati (int a) { cout … | |
Hello everyone For my bioinformatic course i have to make script that allow user to open pdb file (its a file containing gathered information about proteins, all files have same structure) and look for number of subunits. To put it even more simple it has to check if there is … | |
![]() | Alright, I have a Textbox which I want to display some text, but when the user clicks on it, it should clear so he can write what he wants. ![]() |
how to read a file name like 01JUN2009_tsea_360x181.dat | |
ok here is my problem, I am kind of new to Php but have done programming before. I am recently learning php so am not sure what php can or cant do. What i am trying to do here is i have a multiple submit buttons which i input some … |
The End.