199,114 Archived Topics
Remove Filter ![]() | |
Hello, I have a series of variables ending with a number and am trying (unsuccesfuly) to put them in a table using For Next loop. the code looks like this: [CODE] <% v1 = "text_1" v2 = "text_2" v3 = "text_3" %> <table border="1"> <% For x = 1 To … | |
class t{ Somebody please help me with one very simple program in java. I'm new to java, so I can't understand what all this errors about. Please help me fix this program. It gives three errors: illegal start of type swith (s) orphaned case case 'Y': <identifier> expected switch (s); … | |
![]() | Hey guys... I am working on a program where when a user enters a number, the program adds all the digits of the number and goes on till the sum is single digit. [TEX]Example: 9812737 = 9 + 8 + 1 + 2 + 7 + 3 +7 = 37 … |
Hello, I have a question about bitwise operators, especially shifting. Suppose we have: [code=C++] #include <iostream> using namespace std; int main() { unsigned i = 2; i<<=2; cout << i << endl; } [/code] unsigned i = 2 in binary is 0.......00010, if we shift 2 bits to the left … | |
Hi I'm very new to programming and I'm learning C# for the first time with no experience. I just finished designing a program which counts the vowels in a sentence. Now I would like to count the vowels while typing it to the text box. I'm wondering what event/events is/are … | |
Can anyone explain the flow chart or algorithm of the program attach? The program is about LCD clock but I don't know how it works. I need it by tomorrow so please help me take a look. Thanks | |
Hello all, The following captcha script works fine, but only with $name, $email and $message. As you can see I have added $bname, $add, $postcode etc. My Question is, how/where do I amend the script to include those new variables in the email that has sent? I have played about … | |
I've written a form in html(uses Java) that creates a mail (html) via a php file. For me everyting works fine, but when [B]certain users[/B] click the send button, the form blinks and [B]empty all fields[/B]. But other users get a confirmation mail. How is this possible? In a way … | |
Hi all I'm having a problem with netbeans when I try to make af form. It gives an error when it's not supposed to. At least, as far as I know it's not. An image can say a thousand words: check the attachment. Any help? I know this is not … | |
Hi, friends i have a datagrid bound a hypercolumn [CODE=ASPNET] <asp:DataGrid ID="menu" AutoGenerateColumns="False" Runat="server"> <Columns> <asp:HyperLinkColumn DataTextField="OPT_DESC" DataNavigateUrlField="OPT_LINK" DataNavigateUrlFormatString="{0}"/> </Columns> </asp:DataGrid> [/CODE] basically what i want to do is, that i want to insert into the database the users that click some links. so how can i make a clickevent … | |
I'm having an odd problem writing some template classes and placing the implementation in a separate .CPP file - specifically I keep getting the following errors: Error 1 error C2143: syntax error : missing ';' before 'List<T>::begin' Error 2 error C4430: missing type specifier - int assumed. Note: C++ does … | |
import java.util.*; class Degree2 { Scanner in() { return new Scanner(System.in); } void out(String m) { System.out.print(m); } double readDouble(String m) { out(m); return in().nextDouble(); } String readString(String m) { out(m); return in().nextLine(); } void foundRoot(double a,double b,double c) { if(a==0) out("Value x is: "+(-c/b)+"\n"); else { double data=(b*b)-(4*a*c); if(data>=0) … ![]() | |
[code=java] import java.util.*; public class Convert { Scanner in() { return new Scanner(System.in); } void out(String m) { System.out.print(m); } long readLong(String m) { out(m); return in().nextLong(); } int readInt(String m) { out(m); return in().nextInt(); } String readString(String m) { out(m); return in().nextLine(); } String digitOne(int n) { String st=""; … | |
I'm validating two records entity type and name using ajax but my problem now is that it works well all other browsers except firefox. var basiccounter ; function ServerSideValidation(contact_counter,detailed_counter,f,selection,o_name) { basiccounter = 0; //sending entity type to the server var urlEntity = "entity_type.php"; urlEntity = urlEntity+"?type="+document.getElementBYId(selection).value; urlEntity = urlEntity+"&sid="+Math.random(); checkName(urlEntity,"GET", … | |
hi, i am redirecting user to previous page after adding the data. user has come from the url [CODE] http://localhost/goaweb/admin/viewimage/54400 [/CODE] where [B]add data [/B] button is placed to [CODE] http://localhost/goaweb/admin/addpic/NTQ0MDA= [/CODE] for adding the data (add data page) now i am rediirecting the browser to preview URL from where … | |
hello , first i want to say that im very new at c++ , i managed to create a very simple program through searching the internet , this little program involves running a certain exe file with parameters : (e.g: "c:\folder\file.exe" -parameter1 -parameter2) i am using the system() function to … | |
Hi, I've been trying to read the file content from the file path entered by user at run time. However i always end up in error. Help needed... char name[100]; ifstream infile; cout<<"Enter filename to open"; cin.getline(name,100); infile.open(name); if(!(infile.is_open())) { cout<<endl<<"File Not Found"; } i'm not using relative path, instead … | |
okay, i wouldnt be asking for help if i didnt need. im completely stuck and have no idea HOW to fix it. my teacher didnt really teach how to figure out these things, he basically left the last assignment as a "teach ourselves" moment. anyway...whole point of the assignment is … | |
i have one Gridview (Gridview1) i want to make this Grid editable. For this i have set : RowEditing = TRUE RowUpdating = TRUE After this i have got Edit/Delete button on the extreme Left of the Gridview followed by my Autogenerated columns from the database(Column0 , Column1 ,Column2). I … | |
This is what I am trying to do... I have a image and I create a bufferedImage and graphics out of that using: [CODE=java] BufferedImage img = ImageIO.read(file); Graphics2D g = img.createGraphics(); [/CODE] Now I play with the graphics and finally save the file using: [CODE=java] File outputfile = new … | |
Hello all, Do anyone have any idea of what this Exception in occuring when i try to remove the elements in XML using XmlNodeList. It occurs in following section : [ICODE]XmlNodeList nodeLst = xmlDoc.GetElementsByTagName("FileName"); foreach (XmlNode node [B]in[/B] nodeLst) { //code }[/ICODE] Pl help ??? | |
Hi all, I've gotten the drag and drop to work in my listviewbox with some help. I'm not trying to get a file to show in the listviewbox when somebody selects the file from the open file dialog box I've made. I've been able to successfully show the file in … | |
Hello everyone, I'm having one annoying problem with a script I didn't even write. First of all, let me just point out the issue; If you goto this address (site is in french): [B][URL="http://axa.seomena.com/fr/calculez-vos-primes/calculez-vos-primes-assurances-medicales"]LINK[/URL][/B] You'll notice that it's a dynamic calculator, if you choose "individual" and click next, it'll show … | |
Hi everyone, I have a registration form for the book, which has two many to many relationships with Author and Category, So I don't know what is the best way to implement and to be user friendly. If there is an example, please let me know and also share your … | |
Dear All, I am very happy to be here. I have got alots help from this forum. I don't know how to show my search result on the same page. My Code index.php [ICODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script language="javascript" type="text/javascript" src="jquery-1.3.2.min.js"></script> <script language="javascript" … | |
I would like to get assistance on how to retrieve data from MS SQL database to view it on a listbox.In my db i have two columns. | |
Hello I was wondering if there is a way to read a unix profile'd variable while inside my PERL code? I'm trying to do something like this. system( " execute some code >> $UNIXVAR\log"); also tried system( " execute some code >> '$UNIXVAR\log'"); I think though that the way I'm … | |
Hi. Suppose I have a list box, which is filled out from mysql, and I have a text box and a submit button. I want to add the text box data into list box and at the same time I want to have the text box data into mysql as … | |
Hello, I am facing the a probelm, I wanted to read a unix PATH variable into perl script. But its not working. $path_var=`$PATH`; Can u help me in doing this. Thanks in advance, Subii | |
Hello, I have copied this code but I do not really understand what this code is about. . :?: When I put this into my code to expand certain terms, it shows result but it just shows the last record in my table..not taking the variable I posted. Can anyone … | |
guys i'm asking for some help..i have an asgnment bout c++..our prof ask us to give 2 examples ech of the simple if prog, if else, if else if, switch, while, do while and for loop...tnx i'm just a freshmen student of bsit..tnx =) | |
hi friends i want to put help file into my project.sth that when user press F1 it has been shown.how can i create a help file? thanks. | |
Hi, I have a problem. I am storing projectid (varchar) as a field in this format :- DD-NNN where DD is the last two digits of the year and NNN is the next project number within that year (i.e. 09-500 is the 500th project in year 2009). The user has … | |
I'm planning to do a simple game engine (the core functionality in c++) from my own and I want to start with the scripting engine as I want this to be very 'modable', I did not coded anything yet, so suppose that exists a OOP scripting language in which I … | |
Hi friends, I am able to create a row dynamically with 3 cells(i.e column). In my 3rd cell i need to add another row. Is it possible to acheive it. I am using Java script for it. This is the table structure: [code=html]<table align="center" id="msgfield" width="100%" cellpadding="1" cellspacing="0" border="1" bordercolorlight="#999999" … | |
Hi all, I'm currently learning Java right now through a class and my instructor has asked me to try writing a word-count program using a Map interface. It should run through command line and has to identify the number of words, the number of distinct words, and the distinct words … | |
hi, kindly can u tell me how to disable all the window error massages include the run time error msg like "system could not find the path of the file " thank u.. | |
Hi everyone, Im working on a large scale audio program, and I got a question regarding namespaces: The main() part of the program includes my own headers, each named according to what part it plays in the program, eg: Audio.hpp , Midi.hpp etc. These headers will "load" other headers..? Is … | |
Hi, there, i have come up with a dropdownlist that takes data from database. A gridview with checkbox to select and a button to submit the selected rows in gridview and selected data in dropdownlist. i am getting errors. I don't know what is the cause. The dropdownlist will have … | |
Hi, I am very new to Python and thus the question. I have a Python List ready now which I need to send to a C program for further processing. Is this possible? I came across SWIG which does a C to Python but could not find anything that did … | |
I would like to syndicate content from one website to sections withing many other websites. So far I've been using iframe but the problem is that the content presented on these websites is not indexed hence does not improve SEO. [B] I was wondering if you have a solution for … | |
Hi, I am trying to print a String value like this but still not able to get it,. my method is like this:- [CODE] Class1 { public String mystring; public void mymethod(){ mystring = ""; } //Then I am setting the value of mystring in other method like this:- public … | |
I have a gridview on my "second" page with a SqlDataSource. The data source is configured to take the qurry string "arg" from the url and run a stored procedure with it. On the "first" page i have a gridview and one collumn is links. Click on this link and … | |
Hi guys i'm using the join statement and then display it into the data grid. the problem is table 1 and table 1 info display it together like this Badge_ID Emp _Name Active Badge_ID Emp _Name Active 1234 Nana Yes 1234 Hana No How can i show like this in … | |
Hi guys i need help on this can help me can help me to correct it. I want the inner join table 1 & table 2 not show a row in the data grid in the vb6 my sql statement is like this: sql = " Select * from staff_badgeTracking … | |
I want to have scrollbars in a wxpython object that the user cannot navigate away from. Like how a dialog works. I want the scrollable area to be have comboboxes on it. I understand that I can easily put a scrollable area on a dialog that includes text. The only … | |
hi, i have a python module which i compile to an EXE (using Py2EXE). this EXE will be called from another program which was created in C++. my Q is, how can i return an error status from my PY exe to the calling program. is there anyway i can … | |
ok what i am trying to do is see if multiple values are all yes. idk if what i think is right, actually is right. [CODE] $1 = "yes"; $2 = "yes"; $3 = "no"; if ( ($1 && $2 && $3) == "yes" ) { $thing = "you"; } … | |
hi all, I am new in php. I want to show every row one by one during processing with check icon in the right side from row 1 up to row n? table row 1 √ row 2 √ . . . . . row n √ | |
Hi, I am writing a VB.NET application, and I'm having a little trouble writing to the database (via ODBC). I can read from it perfectly well, but when I send an "UPDATE" command via ExecuteNonQuery(), I get a "System Error". Can someone help Identify the problem, or maybe propose alternatives? … |
The End.