199,114 Archived Topics
Remove Filter ![]() | |
I've been using the code below to successfully create spreadsheets for a few years. Now I have the need to insert page breaks at random times. I haven't found any code that does that without having to abandon this code and installing something completely different which I'd rather not do. … | |
Hi Guys , i am trying to connect date time picker to database.So what i am trying to do is when user select a date in the datretime picker ,it should display all the words added on that particular day.Can anyone help me with this.Thanks | |
Hi Guys, I am getting index out of range error.My code looks like this [code] private void submit_Click(object sender, EventArgs e) { if (form.dataGridView2.SelectedRows.Count == -1) return; // column header clicked - do nothing // get the row just clicked DataRowView drv = form.dataGridView2.SelectedRows[0].DataBoundItem as DataRowView; if (drv != null) … | |
I am beginning to write a tkinter program that will generate a DnD 3.5 Character Sheet. I haven't gotten very far. I'm using Python 3, and for some reason the sticky option of the .grid() method isn't working. When I run the code below, I get an error that says: … | |
Hi, i want to renaming tag in xml file with using xslt. Can anybody help me. [CODE=XML]<?xml version="1.0"?> <section> <p>1</p> <p>2</p> <p>3</p> <p>4</p> </section>[/CODE] OUTPUT:- [CODE=XML] <?xml version="1.0"?> <section> <paraone>1</paraone> <paratwo>2</paratwo> <parathree>3</parathree> <parafour>4</parafour> </section>[/CODE] | |
Hello everyone, I'm having an issue that's only appearing in Internet Explorer browsers. It works fine in Firefox and Chrome. [CODE]var yDiff = wHeight - 102; [COLOR="Red"]login.style.top = yDiff+"px";[/COLOR][/CODE] The line of code highlighted in red is triggering an "invalid argument' error in IE browsers but not others. | |
Hey everybody i need help for a project im doin.I need to find out how people use math in the making of video games.What kind of math do they use and how??? Can u guys PLEASE HELP ME?!?!?! | |
Hi, Assume, I have a following table whose schema is, create table testing (test1 integer not null, test2 integer not null, test3 integer not null, test4 integer not null); And assume the following details are inserted: insert into testing values (1,1,0,0); insert into testing values (1,1,1,0); insert into testing values … | |
hi there, i am still facing the same problem with runtime error object canºt be found when trying to access ms access database remotely.i made the database in the wwwroot folder and give authority read write ,....the code is in the client side i am accessing a server that has … | |
Hello, pls can somebody have a look at my script and tell me why I can't get a value from d1? (print d1). Thank you for help. here is a script: [CODE]def subtract(): d1=file1(filename) dd2=file2(filename) res = dict() print d1 ## for key in d1: ## if key not in … | |
I suggest it's just a simlpe tiny thing that has to be done to solve this but I simply can't figure it out! I hope anyone can help me. Here's what I koppied from a learnbook for python. >>> secret = 1337 >>> guess = 0 >>> l = 0 … | |
I have a JDesktopPane that opens and with a login it will add an InternalFrame with the InternalFrame 'innerclass'. The problem is that when I want to add another InnerFrame to the desktop I can't call the inner class to add an Internal frame because it wants me to login … | |
Say I have a file structure that looks like this [CODE]root folder/ main.py -folder a -script.py -folder b -img.png[/CODE] How could I load the img.png file from script.py? Should I just have a function in main.py that gets the path of the root folder, and then tac the 'folder a' … | |
I need to create a program for reading two numbers,printing them,confirming them and then summing them up. Here is my attempt [CODE]#include <stdio.h> #include <conio.h> void main() { clrscr(); int a,b,s; char c,d; s=a+b; printf("Enter any two numbers "); scanf("%d %d" , &a, &b); printf("The numbers you have entered are … | |
i am using mac os x 10.5 with apache php and mysql. i tried below program but end up with following message.. Upload: insurance1.jpg Type: image/jpeg Size: 845.189453125 Kb Temp file: /private/var/tmp/php0Vueol Warning: move_uploaded_file(uploads/insurance1.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /Library/WebServer/Documents/php/upload_file.php on line 25 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable … | |
Hi, I am still experimenting with STL trying to weigh up the pros and cons. I wish to define nested/embedded classes i.e. [CODE]typedef std::vector vector <class B> bVecArray; typedef std::vector vector<std::string> sVecArray; class A{ bVecArray bObjArray; std::srting curLine // current line in dataFile ... }; class B{ sVecArray header; };[/CODE] … | |
Hi, I work with Scriptura Designer (eclipse based) for document generation. I have to generate now a European transfer form. So I have to add a space between the characters. ex: <chead:LastName>Van Messem</chead:LastName> <chead:FirstName>Erwin</chead:FirstName> So I want in return between each character a blanco space. (Like this: V a n … | |
hello dear, i have little problem with my code can somebody help me: thats the problem: Write the assembler instructions that will Convert Celsius Degree to Fahrenheit degree. Note that if the degree is 0 grades Celsius, print out information: “The highway is freezing”. Note that the Celsius degrees need … | |
![]() | Hi, I trying to get the LAST modified text file in a folder, but unsure how to do it. I am using the following code:- [url]http://www.adrianxw.dk/SoftwareSite/FindFirstFile/findfirstfile3.html[/url] [code]#include <windows.h> #include <iostream> using namespace std; int main() { SYSTEMTIME SysTime; HANDLE hFind; WIN32_FIND_DATA FindData; cout << "A very basic FindFirst/Next demo.\n" << … |
what comand is used for printing a text ?? OpenGL programing .. with GL in front .. IF ( something is set ) bla bla bla bla bla bla print text ( what is the comand ) else same here ?? GL_printtext .. or something ?? | |
Hi there I am trying to design a flexi sheet calculator for work so that the users can use this program to calculate their working hours. They enter their times manually over the week. This is a calculator for them to use at the end of each week to calculate … | |
Hi I have to display 4 BufferedImage in jsp page.I am getting these images from a java code. In the jsp page i am using: ImageIO.write(demo.getBuffImage(), "png", response.getOutputStream()); With this i am able to get the image. However if i write different ImageIO.write(....) for displaying each of the 4 images, … | |
I have an MDIParent form with a button in it. I have it so that when i click the button it gets disabled. What i need help on is that, I need to know how to re-enable the button after i exit out of the form that opens when i … | |
Im trying to finish this calculator program, its for a writing rpg on a forum, for a post you get line count creativity rating and difficulty rating using these 3 things you use a special formula to find out the final power level, this code compiles ok, but when it … | |
I have an assignment that has me reading in a file and creating a token for each string and special characters in it (which isn't the part I need help with). I currently have part of the program working 98% but am getting an error when I execute the program. … | |
Hi, I have to make a program containing 52 Buttons having icons on them and have to attach action listener so that each button could function independently. Have used array in this program and have also been able to attach action listener with the array of buttons. Action Listener works … | |
Hello Friend, This is the question what i have.... I am use main aspx page call [B]A.aspx[/B]... In that page There are links available.. Those link click event call to javascript function...That function include following codes [CODE] function moreWindow2(id){ window.open('[B]B.aspx[/B]?val='+id+'','mywindow','width=850,height=540','location=no'); return false; }[/CODE] link pass the id to the js … | |
Hi, I'm designing a web page that has 6 drop down html form inputs (d, m, y, d, m, y) for pulling records from a mysql database depending on users input of a range of dates. I'm trying to use an Ajax script that will hopefully, on submit of form, … | |
HI guys how can i insert todays date in my query,my query is as follows: [code] myString = @"INSERT INTO wordTbl(word,text,date) Values('" + (string)row["word"] + "','"+richTextBox1.Text+"','"+DateTime.Now.ToString()+"')"; [/code] | |
how can i redirect from one form to another in visual studio.Or even better would be if i can just change few panels in the form when i click change or save button for eg. Thanks | |
Hello Members, I have a java file (myapplet.java), the myapplet.class file and the myapplet.html file. I would like to run this applet on my webpage. I use IE 7.0 The myapplet.html and myapplet.class files are both in the public_html folder of my UNIX account,which happens to be on the school … | |
I want to send an email and I am using the code below. It always works on my test server and my production server which are both IIS on Windows. It sometimes works the client's server. Once or twice in ten it sends. The client's server is running Apache on … | |
I am working on a project i need to know hoe i can i insert flash media files on a asp.net page and play when clicked | |
I have a similar project to one posted on Sep 29th, 2009: Interactive Timetable. The difference is that the timetable is to be generated automatically. Lessons can be placed anywhere on the timetable.There are 11 lessons in a day, and three breaks. Could anyone help with this or give any … | |
hello every one. am trying to create Image from byte array in my page. First i create the image by System.Drawing.Image then am trying to convert [CODE=c#]System.Drawing.Image[/CODE] to [CODE=c#]System.Web.UI.WebControls.Image[/CODE]. but the compiler says "Cannot convert type 'System.Drawing.Image' to 'System.Web.UI.WebControls.Image'". So any one please help me.Thxs. | |
Hi all, I am having a projectassign page,in that page i am having a dropdown box in which names of the projects are present.I am getting that project names from database. Below that list of users with checkbox are present. So i can select a project from dropdown and check … | |
Hello, I had a question regarding nested structures. Lets say you *have* to use the following structures: (disregard the numbers thrown in, I just tossed random numbers in). [CODE] typedef struct info{ char name[20]; char address[50]; char serial[15]; } PERSONAL; typedef struct person{ PERSONAL individual[50]; int number; } PERSON; [/code] … | |
Hi, can anyone tell me why the below PHP code keeps returning mysql_num_rows(): supplied argument is not a valid MySQL result resource ?? [code=php] $result = mysql_query("SELECT * FROM RewardGenUser WHERE UserID = 123"); $num = mysql_num_rows($result); [/code] ![]() | |
Hello, I can't seem to get my program to build correctly. It seems I've finally gotten close because now it will build with no errors but with 2 warnings. I'm not sure what else to change in my code to fix it. Could anyone please help? Here's my code: [CODE]// … | |
How can we create a program to visit a website through a proxy server? | |
I have the following script to resize and crop images. I can use jpg and png files, but can't use tif files. Can you please help? [CODE=php] <?php function Image($image, $crop = null, $size = null) { $image = ImageCreateFromString(file_get_contents($image)); if (is_resource($image) === true) { $x = 0; $y = … | |
I need the user to input a book title then price, once that is done when the user searches for the book it displays the title and price that the user has made. Right now its showing weird numbers when displaying the price for book. [CODE]#include<iostream> #include <iomanip> using namespace … | |
Hi I need a script for a web hosting directory and all the one's I found, are not what I exactly need. If anyone know a good & advanced script, please post a link. I would appreciate all the help. Thank You. | |
Hello I have another problem. Here is previous thread: [url]http://www.daniweb.com/forums/post1237196.html#post1237196[/url] and my code: [CODE]$tipster = mysql_query("SELECT SUM(Analysis.Profit), Users.id, Users.Country_name, Users.Username, User_status.id_status FROM Users INNER JOIN User_status ON Users.User_status_name=User_status.user_status left outer JOIN Analysis ON Users.Username=Analysis.Tipster WHERE User_status.id_status>=3 GROUP BY Tipster ORDER BY SUM(Analysis.Profit) DESC"); while ($row = mysql_fetch_array($tipster)) { $sel_tipster=$row['Username']; echo … | |
Trying to create 20 files using ofstream. I could name each individual file on creation, file01.txt, file02.txt ect but wondered if it was possible to use a string variable in place of say the file name (file01.txt) and then use a loop to create the other files. Does the name … | |
I have a table having shop details where shop opening and closing time are available. My need is to find shops that are open in a time range supplied. For Example: Shop1 opens at 9 pm and closes next day at 4 am. Shop2 opens at 1 pm and closes … | |
Hi, I have the picture box in which i draw the rectangle (using graphics paint) and inside that rectangle I typed some name using label box and stored the work, have done When I opened the saved Image the position of text I typed in the label box not in … | |
I have a Visual Basic 6.0 application, it contains a form with onload event, and a Timer. When I run the application as a scheduled task (Run as: Administrator, Run: At system startup) it executes the onload event, but it will not start the Timer. If I run the application … | |
How to Find a Control in Listview on ItemDataBound Event? well i know it's easy to do it.. but how will you find my div which is kept runat= "server" in my Listview's ItemDataBound Event.. and i want witout using javascript? thanks in advance! | |
Hey guys, need your help here. How best can i Normaliza the sql query below [CODE]#---------------------------- # Table structure for litorder #---------------------------- CREATE TABLE `litorder` ( `id` int(10) NOT NULL auto_increment, `name` varchar(50) NOT NULL default '', `address` varchar(50) NOT NULL default '', `xdate` date NOT NULL default '0000-00-00', `ref` … ![]() |
The End.