64,152 Solved Topics
Remove Filter ![]() | |
hi I have a program in c# that have connection string for network use to connect to sql server 2008,it works correctly until our company make DC server and join all computers I change my connection string,then if I log on to my computer(my computer is a server) from any … | |
Hello python gurus! I dabble in python casually, and I've just recently begun to use classes. For the most part they've proven very helpful, but this error has me stumped: [CODE]creature.health=creature.health-2*creature.metabolsim/resolution AttributeError: predator instance has no attribute 'metabolsim'[/CODE] Here's the full code of the program (it's designed to run a … | |
I searched in this forum, but it didnt help my solve my problem. Please help me. This is my code [I]int intOrderNo = (int) Session["sOrderNo"]; DetailsViewRow row0 = DetailsView1.Rows[0]; string strProductId = row0.Cells[1].Text; DetailsViewRow row6 = DetailsView1.Rows[6]; string strUnitPrice = row6.Cells[1].Text; float floUnitPrice = float.(strUnitPrice); string strQty = DropDownList1.Items[DropDownList1.SelectedIndex].ToString(); int … | |
hey ya all my question is simple, how to simulate an event by code, for example consider a simple form which has 2 buttons. button1 changes the forms color, now i want the code that i should put in click event of button2 that when i click it the app … | |
Hello, kind citizens of DaniWeb! I beg your assistance in the solution of my problem! I was trying to create a simple audio player using Tkinter and pygame, pygame being the best library that included audio playback I could find (by the way, DO NOT USE SNACK!!). Anyway, I was … | |
Here is the error [IMG]http://i1199.photobucket.com/albums/aa465/aaron55494/compileerror.png?t=1311972955[/IMG] and here is the code that i'm working on [CODE] public String getKillMessage(String player) { String[][] selection = {{"Congratulations, you have defeated ", "}, {"Congratulations, you have ", "}}; int index = (int) Math.floor(Math.random() * 9); return selection[index][0] + player + selection[index][1]; }[/CODE] Any help … | |
hey guys i have a DGV which has a check box column. what i want to do is that when user checks one of these check boxes the entire row be highlighted as if a normal cell was clicked, here is the tricky part, and i want when user clicks … | |
Hey guys, I have a function called showAll, which has 2 arrays as it's arguments. I declared it as follows: function showAll($dayarray, $distinctShifts) both arguments are returned in other parts of the code, so why is it giving me missing argument errors for both of them? Please give me some … ![]() | |
error: ‘void __stderrp(MattsMatrixSpace::Vec)’ redeclared as different kind of symbol I have a function called "stderr" in my program. I'm not sure where the "__" or the "p" came from. Any idea what this error is related to? PS, the next error is: /usr/include/stdio.h:169: error: previous declaration of ‘FILE* __stderrp’ | |
I am working with a CSV file with multiple rows, which I need to be able to access individual data elements from a row so I can assign them to variables and send them to the other program I am working with in a loop, going through each individual row. … | |
Hi all, t to upload files to my server. Here i have created a coding. This only allows me to upload pictures. How can i amend my coding to upload word and excel files also... [CODE] <?php $db=mysql_connect('localhost','root',''); mysql_select_db('bank'); if ((($_FILES["file"]["type"] == "image/gif") || ($_FILES["file"]["type"] == "image/jpeg") || ($_FILES["file"]["type"] == … | |
lets say I have a form (form1) with lables a-z which are all designed with default text "0". So they all show 0 on program startup. which is fine. I also have a dialog with 2 TextBoxes; I want my program to update the default text/value on (only)form1 labels x, … | |
i'm havin a hard time trying to use other looping statements, i cant get the proper syntax on other types of loops. i need to use others like while wend or something..ty [CODE]range = Text1.Text If Text1.Text > 8 Then a = MsgBox("Error", vbInformation, "Ooops!!") End If Print "Upper Left" … | |
I need some help parsing a string array returned from method. current results: Here is the test Information: SPRCBT - Algebra 1 - Form 9D - Joe Smith Here is my Test Name [Ljava.lang.String;@5ec24193 Any ideas on the best way to return the values of the array instead if the … | |
Hi, Can you help me please I am still beginner in the IBM data studio,my problem is that i want to use the existing table in the SAMPLE database,I want to querry on the 4 tables,like in employee table or etc...in using the stored procedure can you help me please … | |
Hi!! This is some of the code I am using to add dynamic rows when user clicks the Add Row button.I want to show the calculated amount like: line_total=qty*unit_price; sub_total=total of line_total; total=sub_total+tax-advance; [CODE]<script type="text/javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; if(rowCount<3) { var row … | |
Hi, I have 20 rows in a table and I want to update 10 of them only. I am using MS SQL. Any ideas please. Cheers | |
hey ya all i have a simple question how to change the language on enter and exit events of text boxes and if you could include a link to a language code table or something that would also be nice thanks | |
I'm trying to understand Pascal. This code does not work! does not allow me to enter data, using debug seems to go from where I've indicated (procedure createdir) then jumps to end of main program. Can any person shed light on it. P.S. I would put it as attachment but … | |
hey you all i have a main form and there is a button that will open another form as a dialogue, let's call it the AddForm. on the main form i have a DGV and I've written a function to refresh it called DGVreload. it works just fine but i … | |
how do i create a lucky seven random number? or a lotto program? | |
hi am beginner in php.. please help me.. rough explanation: user will select orgname and the following code will get the orgname and import data from mssql. i wanted to filter those data according to groupname and count number of users access to the system in month basis according to … | |
i know how to save a text file to a sql database, the problem is on when will be the process is executed because i need to monitor the operation of an existing system.. | |
Hellow,I need to help for desinging a online based education website.what thing I considered of this site.I plan my site will be remain advanced login system,exam system,tutorial but I need more concept that i can do and how can i do this.thanks | |
this prints all five iterations. cani make it only print the last iteration? [CODE]key1 = [' ','a','b','c','0','1','2','3'] out = '' inpt = raw_input('enter text:') for i in inpt: if i in key1: out = out + key1[key1.index(i)+3] print out[/CODE] | |
Hi everyone, Does anyone know how to tell if all elements in an array but one are the same. I know how to check if all elements are the same but this other problem has me stumped. Any ideas would be great Thanks | |
Hello Everyone! I am developing a library system and want to ask how i can display a record in jsp from my DAO.java file and how cn i be able to use next and previous button. Please Help as i need to submit the system urgently | |
What is the difference between declaring a variable [CODE]private static final int x;[/CODE] and [CODE]private final static int x;[/CODE] I mean what is the difference between declaring static first then final and vice versa . Thank You :) | |
Hello; I using the following sql to get information from two tables --through join; /[CODE]/ this join works in sql, but can $res = "select ad.firstname, ad.lastname, ad.address, ad.city, ad.state, ad.zipcode, ad.dhtmlgoodies_category, ad.dhtmlgoodies_subcategory, ad.caryear, ad.customerid, ad.servicedesc, aj.email, aj.areacode, aj.phoneprefix, ad.clientID, aj.phonesufix, aj.cellareacode, aj.cellprefix, aj.cellsufix, aj.commentonclient from additional_cars as ad, ajax_client … | |
How do I call the function in the button section?? I tried doing target(); and got when the program ran, it gave me some exception thing.. [CODE] package smart; import java.applet.Applet; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; import … | |
Hey everyone, I'm having an undefined variable error where I have marked in red. The variables i and f2 are defined in another method somewhere else in the code. Please tell me how to fix these errors. Thanks in advance!! function showDateBox() { $startDate = array(); $endDate = array(); $dayarray … | |
Hi, I am trying to redirect links through a php redirect. I am just about there but am having problems with the coding to pass the variable through from my page to the php script. For example link on my page is: [url]http://www.website.co.uk/redirect.php?m=196591.html[/url] This should display the page for HotelID … | |
[CODE]#include<stdio.h> void main(void) void change(void); int x=4,y; y=x; { printf("\n The value of x is = %f and the value of y is = %d",x,y); change(); printf("\n The value of x is = %d and the value of y is = %d ",x,y); } void change(void) { x=x+3; } [/CODE] … | |
we were asked to create a calculator in java applet......My codes are working except for one thing....whenever I click the clear button, it only erases the first,second and the total sum.....it does not clear the total difference, total product and total quotient....please help me what to do?...... here is the … | |
How I can clear the textboxes in the webbform. | |
Is it possible to move the "description" column to the right of the "Allow Nulls" column in the table designer so you can see the descriptions for each table column without clicking through them one at a time? Like the attached picture? Please, someone, for the love of all that … | |
I have assigned the value whether the check box is ticked or not to a vairable.I want to pass the value to a function. how do I do that ? if (checkbox1.checked==true) { value1 = "I am here" } if (checkbox2.checked==true) { value2="I am there" } value3 = value1 + … | |
Hi Friends i am facing problem in searching a words from database. Below is my Database details [CODE]CREATE TABLE IF NOT EXISTS `latest` ( `latest_id` int(25) NOT NULL AUTO_INCREMENT, `latest_title` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `latest_short` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `latest_image` varchar(250) NOT … | |
in my c# program, you will have to create accounts for you to log-in. now, when i create an account, (username, password, age, gender, date...) the info will be inserted in a table named "users". ones a users has a created an account he needs to update his record everyday, … | |
I can't seem to "return" a value that is stored in "diff". I am suppose to give the value of diff to "int main()" to activate the void low() or void high() functions. But the program I did skips [CODE] difficulty(diff); if (diff == 'l') {low();} else if (diff == … | |
I have problem with creating jar file want to create jar file with mysql connector i include the mysql connector in manifest file but still it five me error like: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) … | |
Good day! I would like to ask how to enumerate the contents of certain vector and print it in a certain file because this code is having problems: [CODE] Enumeration e = v.elements(); ... while(enu.hasMoreElements()){ out.write(enu.nextElement()); }[/CODE] Error: ...: cannot find symbol symbol: method write(java.lang.Object) location: class java.io.BufferedWriter It seems … | |
Hello people.. I have written a code that replaces IMG tags in a text with the HTML <img tag.. However, I faced a problem; Big images spoiled the layout of the page being viewed. Is there anyway to limit the size of the image only when it's more than 300 … | |
Hi, i am trying to make a BMI calulator and here is my code: [CODE]#include<iostream> #include<sstream> #include<fstream.h> using namespace std; int main (char argc) { double ff1; double ii1; double ww1; for(;;) { system("cls"); cout << "Enter feet." << endl; string f1; cin >> f1; stringstream(f1) >> ff1; if(ff1 >! … | |
I have a database [CODE]LastBalance,AdmissionFee,ClassFee,Total,Received,Balance[/CODE] Please tell me how can i get [B]Last Balance[/B] from sql server | |
hi, can any one tell me how to i convert amount(in digitts) to word. thanks in advance | |
hey there i've opened the source code of PHPbb and i saw something real wired [CODE=php]<!-- INCLUDE overall_header.html --> <p class="{S_CONTENT_FLOW_END}<!-- IF S_USER_LOGGED_IN --> rightside<!-- ENDIF -->"><!-- IF S_USER_LOGGED_IN -->{LAST_VISIT_DATE}<!-- ELSE -->{CURRENT_TIME}<!-- ENDIF --></p> <!-- IF U_MCP --><p>{CURRENT_TIME} <br />[ <a href="{U_MCP}">{L_MCP}</a> ]</p><!-- ELSEIF S_USER_LOGGED_IN --><p>{CURRENT_TIME}</p><!-- ENDIF --> <!-- IF S_DISPLAY_SEARCH or … | |
Hi, I am new in ASP.net. i have create a webform which contains 2 fields textbox1 and textbox2 and two button new and save. i have included the requirefied validator on textbox1. now when i am clicking on new button it will display message i.e enter id. but on new … | |
Hi folks I have several JPEG thumbnail images in a database and need to select particular ones, stitch them together and post them into single cell in the table on a website. I've created the following query: [CODE]SELECT s.Set_Code, t.Mimetype, GROUP_CONCAT(t.Image SEPARATOR '< \;>') AS 'Image' FROM Thumbnails t INNER JOIN … | |
Hi all, I have this mail which works fine: But how can I pass the html tags, as html tags so it shows bold in my inbox? As it is now, i recieve the tags as normal letters.. This is what I have: [CODE] if(empty($error_msg)) { // If validated -> … |
The End.