64,152 Solved Topics
Remove Filter ![]() | |
I'm having trouble with validating my textbox. My textbox should only accept decimal number, and should not accept negative number. i tried this code for validating the input type, but i fail. [CODE]If Not Char.IsDigit(numWeight.Text) Then MsgBox("Incorrect input.") End If[/CODE] And i don't know if this is the right code … | |
Hi, I am having problems with my IF statements. Basically, what I have done is set random numbers to 2 labels. (Random numbers are 1 or 0) What I am trying to make the IF statement do, is see that the label is holding one of those random numbers, and … | |
| |
hi, im doing a project on jsp..which is a file uploading program i have a file chooser and i want the file choosed by the user to be stored on my server. how should i do that.. please help me my code is given below--addphoto.jsp [CODE=JSP] <html> <head> <meta http-equiv="Content-Type" … | |
Hey I have been looking at google page for some time now and can't seem to find a straight answer. I have a application that is released. Now I want to update that application. How can make a updater? It is released a Installable app, but I don't want to … | |
Hello to Dear Friends, iam creating data reports ,but the problem is i cant find the way to make report in LANDSCAPE...i heard sp5 or sp6 vb can do that ..but i couldn't found any option like that. kindly guide me how to create reports in landscape format... ithink there … | |
Hi! :) As said in the title i try to get (as a string) the parent of a selected item, but i can't manage to do it. Of course i can easily retrieve the string of the selected item with GetItemText... But how do we retrieve its parent? Example: if … | |
Anyone have knowledge on how to make a label during run time which it depends on the user on how many label should be made i have tried some codes but it won't work. [CODE]Option Explicit Dim m_memo, m_size, m_equation, m_jobs As String Dim i As Integer Dim lblfield As … | |
Hi, I'm currently trying to learn programming in WinApi C++. Let's say I have a ListBox whose ID is "IDCL_LISTBOX" and I clicked a selection on it. A notification goes to my Message Procedure and I filter it through WM_Command. I look at what the LOWORD and the HIWORD of … | |
Hi guys..i am just dealing with codeigniter framework.. Could you guys tell me where exactly should i put the ajax/javascript file in the codeigniter directory? I mean could it be in the application folder or whatever, or it doesnt matter? because i want to know which is the best practice … | |
I've done some research on JOINs and UNIONs but haven't achieved what I want to do since something I do must be terribly wrong. I have the following SQL-statement: [CODE] SELECT posts.*, channels.channel FROM posts INNER JOIN channels ON posts.channel_id = channels.id ORDER BY posts.created DESC [/CODE] What I want … | |
I found this forum very useful to me as a beginner in VB.net and found similar thread regarding my concern unfortunately it doesn't for me may be could someone show me the solution. [URL="http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/340634/1446506#post1446506"]http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/340634/1446506#post1446506[/URL] i will provide screen shot on error I'm encountering. [IMG]http://i54.tinypic.com/15o9mvc.jpg[/IMG] Help much appreciated and thank you … | |
[B]hi I set an authentication in php for [COLOR="Red"]admin[/COLOR] and it worked fine but now I need to use the same code for users who have limited access to the database that the admin use. [COLOR="Red"]user1[/COLOR] only update one table [COLOR="Red"]user2[/COLOR] only view tables [COLOR="Red"]user3[/COLOR] insert to one table only … | |
Suppose I have two tables: [CODE] Table1: Pets PetID----------|Name----------|Type----------| 1 |Shaz |Dog | 2 |Molly |Cat | 3 |K9 |Dog | 4 |Billy |Goat | ______________________________________________ Table 2:PetAttributes PetID----------|AttributeName-|AttributeValue| 1 |HairColor |Black | 1 |Breed |GermanShepherd| 1 |Age |12 | ______________________________________________ [/CODE] As you can see from the sample, the … | |
Been designing websites for years - tried to avoid anything MySQL/PHP - deep programming related. Quickly coming to a realization I need to give it a try... UGH. I tried to get my feet wet with MySQL 1 year ago (to the day, apparently... weird?) and was quite unsuccessful. Now, … | |
Hello, Can anyone help with this error? [url]http://img27.imageshack.us/f/errorpq.jpg/[/url] I try and click text in the list box and it crashes. Thanks, Matt :) | |
Hey guys, The problem: I have a 3 question quiz which obtains the questions and answer options from a database. At the moment, I've managed to display all 3 questions on one page under one form. What I'm trying to do: Display one question per page. I've tried to google … | |
I'm using an html form to submit data directly into a mysql database using a php script. For some reason the pictures will not be uploaded fully into the database. This is when I don't use a multipart/form-data tag. When that occurs the pictures partially upload but when I put … ![]() | |
I got this code sample from the internet, [url]http://richardbowles.tripod.com/java/menu.htm[/url] was able to change the deprecated code to BufferedReader to read in the file, but don't know what's wrong with the errors I'm getting. This is sample code I'm trying to get to work so I can step through with a … | |
I am working on a simple click/attack game. Here's my code... HTML: [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="style.css" type="text/css" media="screen" /> <title>Random Number Game</title> <script src="rand.js" type="text/javascript"></script> <!--[if lt IE 9]> <script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script> <![endif]--> </head> <body> … | |
Hi, Below is the code I am compiling to a .dll & .lib but when I try to import the "Rand" module I get [B]ImportError: No module named Rand[/B], I renamed the .dll to .pyd then this error is removed but when I call the sub module Rand.myRand(10,30) it crashes … | |
Hi, I need to create a sql query that will return the sum of the total number of records in the t1 and t2 tables. Any ideas how to do it? Thnx in advance | |
Hello, I am having issues with incrementing the counter by 1. In my quiz, the score must only increment by 1 for each question ONLY if the question is correct. I have made this work, however when the answer is correct, the user can continually click on the Submit btn … | |
Hi all I am a total newbie and am self teaching myself. I worte a program that lets the user guess a random number and then asks if if they want to play again.\ Here is the code: [CODE]#include <iostream> #include <cstring> #include <stdlib.h> #include <ctime> #include <conio.h> using namespace … | |
[COLOR="Red"]Disclaimer: [I]First, I'm aware that this is C++ code and this is a C# forum, I'm not all that familiar with C++ and was hoping someone here could explain the example below in C#.[/I][/COLOR] I was browsing the very complex source code of the open source project MySQL and saw … | |
I was concerned about how threads can be used in Coldfusion. Actually I am using 'cfmail' tag to send a mail with an attachment and I am storing the attachment file in a directory. What happens to be in the code is that, After using the cfmail tag I am … | |
[CODE]testingdays = testingData.getMeasurements() for day in testingdays: dayValues = [] dayValues[0].append(day.tempMean) dayValues[1].append(day.tempMax) dayValues[2].append(day.tempMin) dayValues[3].append(day.dewPoint) dayValues[4].append(day.humidMean) dayValues[5].append(day.humidMax) dayValues[6].append(day.humidMin) dayValues[7].append(day.pressure) dayValues[8].append(day.meanWindSpeed) dayValues[9].append(day.maxWindSpeed) dayValues[10].append(day.maxGustSpeed) dayValues[11].append(day.visibility) [/CODE] this is my code and when i try to run it i get the error message: "Traceback (most recent call last): File "main.py", line 166, in <module> … | |
hi there, i have created reports through Data reporting, problem is that the data shown in reports it continues, like 2 entries in 1 page ,half entry on next page,, in simple it is unorganized. i want data report to show data separately ..kindly tell me what is the process..to … | |
Would somebody please assist me? I have been consistently been doing trial and error with my counter. You see, when the program cannot locate an item (which is typed at the bottom) it displays "Sorry, no such item number exists, please enter another one or 0 to stop." Every time … | |
If I posted this is the wrong place, I apologize. I couldn't find an area for ActionScript. I am completely new at this and our assignment was to make a Madlibs game. I think I am very close, but for some reason I can't access my text inputs. So when … | |
The code runs through without errors. However my controls, LinkButton01, Image01 and Button01 do not appear on my web page. I have added the code as code behind and in front. Both times they did not appear. I am sure there is a trick I am missing here. Please assist … | |
[B]Hi Guys I have the following code for html and php. when i click on the button to calculate bmi it doesnt work.... can someone please help it is urgent...[/B] Heres html code: [CODE]<html> <head> <script type="text/javascript"> function Calculate(str) { if (str=="") { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code … | |
#include<iostream> #include<stdio.h> #include<string> #include<stdlib.h> #include<time.h> using namespace std; void printBoard(); void fillBoard(); void checkWin(); string board [9][9]; bool gameOver = false; int main() { fillBoard(); printBoard(); }//end of main void printBoard() { cout<<board[0][0]<<" | "<<board[0][1]<<" | "<<board[0][2]<<" "<<board[0][3]<<" | "<<board[0][4]<<" | "<<board[0][5]<<" "<<board[0][6]<<"| "<<board[0][7]<<" | "<<board[0][8]<<endl<<"--------- --------- ---------\n";//1st line cout<<board[1][0]<<" … | |
Hi all, I have a table where it stores Process. The Process has each processNumber which is unique, & the processNumber indicates the step of a procedure. My problem is, user request to add a Process in between existing processes. In other word the new Process overwrite the existing process … | |
[B]HI everyone I am very new to java Script and I have a calendar written in JavaScript:?: I want to take the values from it[Clicking in an input field activates the calendar. The date format is "%m/%d/%Y %I:%M %p". The calendar defaults to "single-click mode".] and using php insert it … | |
Hi I have looked around the forum but cant find anything about rss feed links. I have managed to get my rss feed working but i want users to be able to click on the title of the rss to take them bk to the orignal website can anyone tell … | |
i am new to c++ and learning about vectors now and vector member functions, so my question is more a logical question. my question is dealing with the .begin() member function, i now it sends the iterator to beginning of vector but i am confused on what it returns. i … | |
Hi, I have one simple problem. PHP (CodeIgniter) code: [CODE=php] $query = $this->db->where('filename',$filename)->select('valid_until')->get('jos_reklama_banners'); $row = $query->row(); $valid_until = $row->valid_until; if($valid_until > time()) { $sql = "UPDATE `jos_reklama_banners` SET valid_until = valid_until + ? WHERE `id` = ?"; $query = $this->db->query($sql, array($days*86400 ,$filename)); //viena diena 86400 sekundziu //echo 'daugiau'; } else … | |
Hello, i have create a form for uploading file and it's works, but i dunno how to make people can download it.i hope someone can helps me.. | |
[CODE]#include<stdio.h> #include<iostream.h> #include<conio.h> void main() { int size=5,i,j; clrscr(); //cout<<"Enter the length of array : "; // cin>>size; int *array = new int[size]; cout<<"Enter elements "<<endl; for(i=0;i<size;i++) cin>>array[i]; for(i=0;i<size-1;i++) { for(j=i+1;j<size;j++) { if(array[i]>array[j]) { int temp; temp=array[i]; array[i]=array[j]; array[j]=temp; } } } cout<<"Sorted array"<<"\n"; for(i=0;i<size;i++) cout<<array[i]<<' '; for(i=array[i];i>0;i--) { delete[] … | |
Greetings. I am using SED to cleanup files that are laid out like so: [icode] ReceiverID=028936004663 SerialNumber=WD-WCAV95708405 Currenttemp=44C PowerOnHours=3663h ReceiverID=028923894902 SerialNumber=WD-WCAV9A766701 Currenttemp=49C PowerOnHours=2215h [/icode] My boss wants files like this one to be tab ("\t") delimited like so [icode] ReceiverID=...(tab)SerialNumber=...(tab)Currenttemp=...(tab)PowerOnHours=...(newline) ReceiverID=...(tab)SerialNumber=...(tab)Currenttemp=...(tab)PowerOnHours=...(newline)... [/icode] 1) first, I added a newline to mark … | |
Im a beginner in C,Can anyone help me? :?: I have problems when I encounter double or multiple spaces between words. [CODE] #include <stdio.h> FILE *fpr; int main(int argc,char *argv[]) { if ((fpr = fopen(argv[1],"r")) == 0) { printf ("\nFile %s Don't Exist!\n", argv[1]); } fprintf (fpr,"%d",count()); return(0); } count() … | |
hi, i want to ask about the check/uncheck the checkbox in a column in datagrid. if all row in the checkbox column is not selected, what is the code is.... because i want the msgbox appear if the user not check any row. tq, | |
![]() | Hi there folks I have done quite a bit of C programming for embedded environments and PC console programs but never for windows applications and only once before with the PC COM port. When I did program for the COM port before it was on older machine, and used conio.h … |
Can anyone help me learn how to create a directory in C? Right now I have a program that writes to a file, and now I need to create a directory to store the file. My operating system is Windows XP. Sample programs, commands, links to tutorials will be greatly … | |
Good Morning All... I am really baffled with what I am getting from a form input using an image... Here is the form... Basically it is a single form with 4 separate input images, each reloading the same page, but changing the value of the variable 'name'. [CODE] <form name="display" … | |
Hi there, I have wrote a program that do a bit of calculations that takes about 10 min to complete, therefore I need to show a progress to user. I used a percentage in status bar to show the current status of program. The problem is for updating the number … | |
My HTML Code is following. <asp:GridView ID="grdOrderDetail" runat="server" AutoGenerateColumns="false" PageSize="50" Width="755px" OnRowDataBound="FormatGrid" ShowHeader="true" AllowSorting="false" CellPadding="0"> <Columns> <asp:BoundField HeaderText="Order ID" DataField="OrderID"> <HeaderStyle BackColor="Silver" Width="20%" BorderStyle="Solid" HorizontalAlign="Left" /> <ItemStyle Width="20%" /> </asp:BoundField> <asp:BoundField HeaderText="Product ID" DataField="ProductID"> <HeaderStyle BackColor="Silver" Width="20%" BorderStyle="Solid" HorizontalAlign="Left" /> <ItemStyle Width="20%" /> </asp:BoundField> <asp:BoundField HeaderText="Unit Price" DataField="UnitPrice"> <HeaderStyle BackColor="Silver" … | |
I have a list of values extracted from a datareader in a list. Is it possible for me to run a query to extract another set of values using a datareader and then use the individual values in the list and the values in the datareader to perform some calculation, … | |
i have connected combo box with data base... i have called a field in combo box... but i dont know how to made selection.. means when i click on items that are in combo box from database, the text box should change value according to the selection of combobox. [CODE]Option … |
The End.