199,114 Archived Topics
Remove Filter ![]() | |
Hi there Im trying to program a simple project for school but am having troubles. I need to ask a person to enter a number which displays on screen, then multiply that same number buy itself. I can get the number entry part but keep getting errors from that point … | |
I am new to programming but when I took my class on Visual Basic it seemed so easy and I learned it so fast. It seemed like a giant puzzle. Now I am taking a introduction course to C++ and I cannot seem to grasp the material at all. When … | |
Is there a macro that can get a text as input like "abc" and then extract characters in that text and generate a code using them, something like "{'a','b','c'}" ? thanks. | |
I have a database with two tables: [B]books[/B], the fields are [B]title_id, title, pages, publisher[/B] [B]author[/B] the fields are [B]author_id, title_id, author[/B] I can INSERT ok into either table as a speparate entry but what I would like to do is enter the data into both fields from a form … | |
OK this is what I want to do: [LIST=1] [*]Log the User in by checking with a SQL Database with a table that has user name and password. Also that table is linked to another table with all there personal information [*]After they login, they have to enter information into … | |
[code]public partial class Form : System.Web.UI.Page { private void connecttodb() { OracleConnection conn = new OracleConnection(); conn.ConnectionString = "User Id=WLL; Password=wll; Data Source=WLL;"; } protected void Page_Load(object sender, EventArgs e) { if(!Page.IsPostBack) { String CommandText = "Select DepartmentID,Department from its_department;"; OracleDataReader odr = GetDr(CommandText, ConnectionString); DropDownList1.DataSource = odr; DropDownList1.DataTextField ="Department"; … | |
Hi all... i need to do some study regarding how to count the multiple int that keep in by user like this :- "Please enter the integer : 1 3 5 66 88 (1+3=4+5=9+66=75+88=163 - the program will terminted cause exceed than 100) how to do ?...i stuck very long … | |
I have this [CODE] <div class="registrationfield"> <div> <asp:CheckBox ID="CheckBox1" runat="server" Text="ERS" CssClass="registercb"/> <asp:Label ID="Label31" runat="server" Text="Registry No.-" AssociatedControlID="TextBox1"></asp:Label> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> </div> </div[/CODE] Then the CSS [CODE].registrationfield { float:left; width:419px; } .registercb { float:left; width:7em; } [/CODE] The registration field is beside another box so I floated it left. The … | |
Below are my stored procedure to change password and the VB.net code to call it. The Sored Procedure executes properly and returns correct values when executed from SQL Server directly, but it does not check its conditions and returns -1 when called from VB.net code. please help me in this … | |
Suppose we have following two classes: [CODE=c++] class Temp{ public: char a; char b; }; class Final{ private: int a; char b; char c; public: Final(Temp in):b(in.a),c(in.b){} //rest of implementation };[/CODE] can we initialize an object of the Final class with following syntax in upcoming c++0x standard: [CODE=c++] Final obj(Temp{'a','b'});[/CODE] | |
Hello, I want to print a crystal report on paticular size of parer. but it has only standerd size (A4 size). how can i set the size of the report. | |
i have written this in else condition ..can anyone please check this... [CODE] else if (DDlDepartment.SelectedValue != null && DDLStaffid.SelectedValue != null) { con.Open(); string str1 = DDlDepartment.SelectedValue; string str2 = DDLStaffid.SelectedValue; SqlDataAdapter ad1 = new SqlDataAdapter("Select * from ManstaSalary where Department='" + str1 + "'and StaffID= '" + str2 … | |
Aslam o Alikum to all, here is my code to get and change the attributes of a txt file. I want to change the hidden attribute of file. In this code, when i get attribute of file, the number 20 (100000) is returned in cx. I changed this number to … | |
Hi, I have created a Hello servlet , compiled it and deployed the Hello.class in the folder C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test\WEB-INF\classes manually. In the C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\test\WEB-INF folder i have created a web.xml like: [code=xml]<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/java.sun.com/dtd/web-app_2_3.dtd"> <servlet> <servlet-name>Hello</servlet-name> <servlet-class>test.Hello</servlet-class> </servlet> <servlet-mapping> <servlet-name>Hello</servlet-name> <url-pattern>/Hello</url-pattern> </servlet-mapping> … | |
Hi, I have a problem trying to capture data from a database to a label. I am trying to display a list of values from my database when i press a button. Can anyone help me out? This is my code for my database [ CODE]Dim strDBFileName As String strDBFileName … | |
please tell me what is the meaning of this code , i have tried it on my website but it usually says you are not allowed to access directly to it this is the code please help me : [CODE] <?php defined( '_VALID_MOS' ) or die( 'Direct Access to this … ![]() | |
hi i was wondering if users are able to change php sessions data like for cookies and if so how can i not allow them to do this? I want to know because i dont want people to steal each others account on my site. | |
Hi I cann't get count the selected list box items using javascript so you please help me. if you know means please send to me Advance thanks | |
help me plz i m facing an error.....thnx Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in J:\xampp\htdocs\projects\admin\index.php on line 45 <?php //database connectivity $host="localhost"; // location of my sql on server $user="root"; // Database name $pass=""; // Database name ( By default with no password ) … | |
hello everybody, I need a code to export data from Ms-access database to Ms-Excel sheet using VB.NET Thank you in advance:) | |
In my code, I loop through 3 random users, and I am trying to add 500 to their total number of credits. The variable $credits isn't being captured correctly, as it shows blank when I try to echo it. The odd part however, is $userid (primary key) is captured into … | |
Hi all, Currently im doing a little coding to communicate between two PCs through RS232 ports. i am thinking of using: "writeFile" to send a string to the other PC, "readFile" to read back the acknowledgement string from that PC and "strcmp" to check if the read back acknowledgement string … | |
Hi everyone... I don't know where to put this post, but I guess it goes here seeing that this isn't about a specific programming language. I'm a bit confused as well as nervous about starting with native desktop applications, on school I used Delphi, and later I started to become … | |
Hi, I need ur help regarding to do this program in java....i need to do program where user can input any number n this program will count until reach 100...if reach then the program will print out :---bla bla bla.....if not user can keep input the integer..how to to?...i'm dizzy … | |
Hi, well what I'm trying to do with this, is to read a text file line by line and pass its data to the struct. the problem is that not only i can't read the strings and put it on the struct fields, I also get a segmentation fault. Could … | |
i have finished writing my program, but teacher want me to write a checkbook balancing program of a user's account. It has to use getline () to read a line, which will contain either the word "withdrawal" or "deposit". After reading each pair of line, the program should compute and … | |
I know I am missing alot, but I am new to mysql and I have to make a table for a used car dealer which includes make,model,price and mpg and I am confused. I have to configure commands with sample data to enter at least one record in each field. … | |
i have attchhed the error in screen shot..pl guide me wats wrong in that.. thanx.. | |
[B]I need suggestion, i am fresh graduate and i want to start free lancing. But the point is how come an employer will give me a project as i have just education experience of my final year project and semester projects. I have a very little professional experience. My interest … | |
this application contains 2 folders each of them contains webconfig files and iam using .net2005 the error shows when it runs in mozilla | |
Hi There. Does anyone have a php select option that will pull data from mysql DB and populate next select option with data. I need to have 3 select option. I also want to run mysql query with data from all 3 select options. Thanks Regards | |
Server Error in '/PrecompiledWeb4' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' … | |
Hello everybody, I am c# developer but I have c# application and want to change it with Java because sometimes I have problem. I have 7 modems and my clients send package to my application and I want to listen it with thread ans produce an answer to them. I … | |
Hi all, i'm working on a search function for a music CD store project. The form consists of a combobox that displays the artiste names from my database during runtime. Below the combobox are check boxes that represents the genre, such as Pop and Jazz. So for example in run … | |
Hi , I have textbox. When i type number with floating point(12.5) and leave focus on that textbox ,yhis textbox contains only 12. Why it is????? I want to do calculations with value of textbox so my calculations will wrong. Plz help me. Thanks in advance. Plz help me.......... | |
I am storing the images in a folder on my webserver and adding the location/details of the image to the database. But I have problems retrieving them, please help! Is this the code I should be using? [code=php]<?php echo "<img src='/images/". $filename ."'>" ?>[/code] then $filename is supposed to be … ![]() | |
Hello guys and gals. As always any help is much appreciated. I am at a dilema. I am filling a datagridview with very lengthy results. Roughly 60k rows on average. I am filling them via an oracle database using a table adapter. The records then have a filter placed on … | |
Hi im trying to send a key to a game but it dosent work. i have tryed this [CODE] SendKeys.Send(X) My.Computer.Keyboard.SendKeys(X) System.Windows.Forms.SendKeys.Send("{X}") [/CODE] It works in Windows but not in a game | |
IT NOT WORKING :(( [CODE] $igletuire="INSERT INTO valoare_lucrari (id_ofertant, id_manopera, id_camera Denumire_camera, um, Cantitate, Pret_manopera, Total )VALUES( '" . $row['id_ofertant']. "', '" . $row['id_manopera'] . "', '" . $row['id_camera'] . "', '" . $row['Denumire_camera'] . "', '" . $row['um'] . "', '" . $row['Sgletuire'] . "', '" . $row['Pret_manopera'] . … ![]() | |
C++ has a standard function isinf()? like isnan()? If yes, it returns true in case of +inf and -inf also? | |
Hello Everyone, I have table name schedule in my database. There is field sch_time in that. sch_time stores time in GMT. I also have timestmp field which stores data in unix format. The time stored in sch_time is of future date i.e. schedule of some event. This events are displayed … | |
Hi everybody, I'm wondering is there a way to check wither a dateTime is selected within particular period. Let me give a e.g: suppose I've date1 = "07/18/2010 08:00" date2 = "07/18/2010 10:30" date1 and date2 represent a period of time from 8 to 10 in 18/07. I want to … | |
Hello I'm trying to get a random float number between two float numbers using rand() function but I couldn't write it by myself, can you show me how to do it? Thanks... | |
Hi! I need [B]create a class[/B] to represent a "rock". When a rock object is created it should have print out a message to the console saying: "Rock 1 created". I should have a field that contains the rock's [B]weight[/B], methods to [I]set[/I] and [I]get[/I] the weight and method to … | |
When i run the second form it occurs a error "The Process cannot access the file C:\user\Maxs\Desktop\xml\Student.soap because it is being used by another process" Can anybody fix this Form1 Creating soap file [CODE] using System.IO; using Students;// Student DLL file using System.Runtime.Serialization.Formatters.Soap; namespace TestAps { public partial class Form1 … | |
Hey,, im writing a program using cmd commands in it.... Need Some help from experts :) 1) Question A [CODE] Process p = new Process(); string d = txtPath.Text.ToString(); d = d.Substring(0, 2); // p.StartInfo = new ProcessStartInfo("cmd", "/c \"format '+ d+ ' /fs:ntfs" );[/CODE] i have some doubts to … | |
Hey ! :) Below is my code for a about page ! i need to load a image instead of suing drawString to draw the image ! :icon_redface: what i need to do is to load a jpg and center it to screen ! can any1 help me to modify … | |
Is there any way to search with a variable that is an array. ie) [code=php] mysql_query("Select * FROM table_name WHERE `id` = '$var'"); [/code] where $var is an array. Is this possible? | |
Hello! I have this funtion to delete a record from a MySQL table: [CODE]def delUser(): #Delete user #Ask for user to delete Username = raw_input('Which user would you like to delete? ') #Delete user delUser = '''DELETE FROM Users WHERE Username = %s''' cursor.execute(delUser,(Username)) db.commit()[/CODE] The problem is that it … |
The End.