199,114 Archived Topics
Remove Filter ![]() | |
I am trying to run a script when a button is pressed on my Login.aspx page in Visual Studio 2008. I have set the Sub routine which is located within the script to redirect me to a certain page when the script is run for testing purposes. When I press … | |
Hi, I'm looking for the answer ... to following question: How it all works, I mean how my code, even assembler code or opcode, gets executed? I don't want to read about 'moving pointer on the call stack' or 'processor does one thing or other' or anything like that. I'd … | |
i create a code to delete a data in sql server..but nothing works anyone outhere help me spot the problem.. ] [CODE]Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim varAdapter As SqlDataAdapter MsgBox("are you sure want to delete?, important information will be erase. ") 'varConnection … | |
Hey guys, I am creating a new mini battle tanks game in python. Not gui based as of now. What it does so far is show a tank moving around a grid size of -10 to 10 Currently i have set it up as this far, just defined the coordinates … | |
Hi guys i'm currently working on a project and i was thinking if there's any way i can import the rows and columns the user needs on the next page to make it clearer, on page1, the user would be asked for the numbers of rows and/or columns they need. … | |
How to I rearrange this so that only distance less than or equal to 25 are displayed? [code]For i = 1 to 20 Display(rs) rs.MoveNext If rs.Eof Then Exit For If rs("distance")>25 Then Exit For Next[/code] | |
Hi, I want to assign a char pointer value to enmerated value, to use in a switch statement. Given below is the code segment. I dont hv an idea how to convert and assign char pointer value to a enumerated value. Pls can someone help me to resolve this [code=cplusplus] … | |
I'm working on a lineEditor class (doubly linked list) and I'm switching it from using std::string to a template but I keep getting: lineeditor.cpp(33) : error C2143: syntax error : missing ';' before '*' when compiling. The code is: [code=c++] template <class T> int lineEditor<T>::getSize() { return maxLineCount; } template … | |
I have a form with a reset button and what I want is to reset only some form elements when that button is clicked. [code] <form name="frmMyForm"> <input type="text" name="txtText" /> <input type="checkbox" name="chkCheckBox" /> <input type="reset" value="reset" /> </form> [/code] Now I want the checkbox to be reset when … | |
Hey guys, i got another question. say if you want to only write a few lines of code that can be called on at any time the while the script is running, i'm assuming its the pickle function or something similar to batch like the goto function? Thanks | |
Hi, I have a little problem. It is almost working but it continue to say undefine in the text area instead of the name they type in the txt box. I might be confusing you so i am going to put down what I have then explain what I am … | |
Is there a way to make a visual studio 2005 form repaint itself every 'x' number of milliseconds? Thanks. | |
Here is the code. For a short time, I will leave the test results up at [URL="http://superiorminitrucks.com/inventory"]superiorminitrucks.com/inventory[/URL] Clearly, I need to stop it from displaying the final entry twice.. Thanks in advance.. [CODE] <?php $db_connection = @mysql_connect("######", "#####", "####"); if (!$db_connection) exit(); mysql_select_db("tefflox", $db_connection); $result = mysql_query("SELECT * FROM trucks"); … | |
Hi, I am making an asp website using visual c#. I am working on visual studio 2008. I have a problem with selecting data source from the database for UI components. For example, i added a "dropdownlist", clicked to select data source appeared on the right. I entered my hostname, … | |
I am doing a loop that will run all the time and when a change is done to the File(Source), then this file will be Copied/OverWrite file(Dest). One problem that I have is that the if-statement that says: [B]if( CurrentSourceTime != LastSourceTime ) {}[/B] is running each loop ? I … | |
Please mail me the procedure for Java Oracle Connectivity. <snipped email> | |
[B]hi i have this function:[/B]Public Function GetFile(Filename As String) [CODE]Dim path As String Dim Fnum As Integer '---read file in one pass! Fnum = FreeFile Open Filename For Input As #Fnum GetFile = Input(LOF(Fnum), Fnum) Close Fnum Exit Function ErrorHandler: Err.Description = "GetFile: " & Err.Description & " -> " … | |
Hi I have got the TypeError. I use lists at the same way in my other programs it works excellent, but just in this program I have got problem don’t know how to solve it? [COLOR="Red"]Traceback (most recent call last): File "E:\extra_b.py", line 42, in <module> ordna(pile) File "E:\extra_b.py", line … | |
[code=c] #include<stdio.h> #include<conio.h> #include<string.h> struct book{ char title[30]; int book_isbn[13]; };book library int x, found,count,y; char title[20][30]; void setup() { strcpy(title[0], "Wind In The Willows"); strcpy(title[1], "Fright Night"); strcpy(title[2], "Women From Venus, Men are from Mars"); strcpy(title[3], "Happy Days"); strcpy(title[4], "Gone Fishing"); strcpy(title[5], "My Sql"); strcpy(title[6], "About Nothing"); strcpy(title[7], "Beowulf"); … | |
im making a dynamic table in ruby on rails in which im displaying devices in a table and corresponding to each device i want to show its status which is ibtained dynamically by an ajax function (periodically_call_remote) which updates a div. its working fine but its updating only the first … | |
I am in a c++ programming class in my High School, and I am having some trouble with the final I was assigned. We were assigned to make a video game, so I decided to make a text adventure. My code is basically a bunch of if statements telling the … | |
[code] public class IamCanadian { public static void main (String[] args) { // create an object, and IamCanadian canEng = new IamCanadian (); // while the user does not enter "quit" as a sentence: // get a string from the user System.out.println ("enter a American English"); String ameEng = ReadLib.readString … | |
This is the file I will be calling from, basically it stores something into a file called "temp.txt, so let's assume that it works and the problem is not here. This is the "file.h" file. [CODE]#include <iostream.h> #include <fstream.h> #include <string.h> #include <stdlib.h> ofstream output_file("temp.txt", ios::out); class NUM_STUD: { public: … | |
I"ll preface this with the fact I'm pretty new to C++ (my background is in Java, so having to deal with these pointers is proving to be a little confusing). I'm trying to iterate through a vector that I passed to a function. I can't get this code to work … | |
This doesn't seem to behave as I would expect (as it does in matlab, for example). I want to execute a command, but give some readable output instead of the often very messy auto-generated error (index out of range or something). [code] try { MyFunction(1,2); } catch(char* str) { cout … | |
A programme in C++ that if date is input it tells day? For example Enter Date : 1-01-1985 The day is 'Monday' Enter Date : 2-01-1985 The day is 'Tuesday' Restriictions are using If-else, switch,operators(/,%,*,+,-) while loop.logical operations(&& || ) Please write the programme or Explain the logic It starts … | |
Okay here is my code: If optName.Value = True Then Dim strSQL As String strSQL = "SELECT * FROM Usages WHERE UsageID = " & List2.Text & "" Adodc1.RecordSource = strSQL Adodc1.Refresh Refresh is causing an error in from clause?? I tried setting my adodc1 to an adcmdunknown recordsource, with … | |
I am using VC++ 2008 and wonder, that if I have made a project. "Windows Forms Application" that only consist of an Emty Form. I wonder how it is possible to Compile this so this will be an application. I have searched around in the properties and found something called … | |
Hai all i am doing an ASP project.... when redirecting to anotherpage like Response.Redirect("Page1.asp") i dont want to show the actual path of that web page in the address bar... but it shud be displayed in some encrypted format... also i dont want to use Server.Transfer...i want to be displayed … | |
Okay I have a database that contains records of billing information. I have created the queries I need to display the information but my issue is, is there a way to take the total values that are being produced from the query and separating them depending on amount for instance … | |
Hi all I have written a program to issue a bursary according to the amount of modules passed in 2007 and the amount registered for in 2008 , basically if the student did not pass any modules in 2007 :no bursary if the student passed 1 or 2 modules in … | |
Hi experts, I used Window.showModalDialog to open comment.aspx. I need to disable the X button(top right button of IE) in my comment.aspx as entering comments is compulsory. I've done several days of research but to no avail. I'm guessing that it's not possible even if I use javascript. Any ideas … | |
Hi, I'm trying to not show the user a php error and have tried the following: error_reporting(0); (may not be the best idea) error_reporting(E_ERROR); to remove a warning type error and it doesn't seem to work. The php version is 4.3.2 display_errors is set to on Anyone know why this … | |
i recently started python and i wanna learn how to implement modules in my program, but when ever i try to string modules together it says function not callable how do u make functions callable and if u cant then how would u put this code 'readTextfile.py--reads and displays text … | |
How can I get every Token (word) and PreviousToken(Previous word) From text file For example if the text file content is "Every man has a price. Every woman has a price." First Token(word) is "Every" PreviousToken(Previous word) is none(no previos) Second Token(word) is "man" PreviousToken(Previous word) is "Every" Third Token(word) … | |
Ok heres the deal i need to make this program that will allow users to practice their addition and subtraction for whole numbers between 1 and 100, 1 and 200 and 1 and 500 (the levels of difficulty). The user will be allowed to choose which operation to have questions … ![]() | |
I'm writing a program that takes an input string and gets the length and/or gets the number of vowels and consonants in the string. I've gotten it working except for consideration of spaces (which are allowed) and error checking for input other than letters. Here is what I've got so … | |
it says two teams A & B have to play a match, and we have to find probability of team A. I can't understand the way to calculate its percentage. The main points are: 1) the match is played by two teams: A and B; 2) the first team to … | |
Hey. Ok, i already asked this question on asp.net and sqlteam forum, but without any luck. Hope it will be diferent here :) So, here the thing: I have created some users to my site using the WAT tool. Therefore, the users information was automatically stored in ASPNETBD.mdf file. When … | |
I have an assignment to make a text-based snakes and ladders game using Dev-C++. I have so far made a splash screen and a menu (with colours and sounds, pretty cool) using the winmm.a library and the switch/case construct. I have even been able to get player names with a … | |
What would be the php mysql code to search more than 1 field in a table ? Im trying to search for a given partial phone number in all three fields home mobile and work .. im trying to use $query = "SELECT `first`, `last`, `home_phone` , `work_phone` , `mobile_phone` … | |
I am trying to write a program that can sense if Any changes was made to the file: [COLOR="Green"]"C:\\Folder1\\One\\File5.txt"[/COLOR] If Any changes was made, then this file will be copied to destination: [COLOR="green"]"C:\\Folder1\\Two\\File5.txt"[/COLOR] So what happens is that the destinationfile will be "Overwrited". I have started out som code but … | |
Hello all, im rather confused about what's wrong with my code.... it says non-static method add(E) cannot be referenced from a static context, yet i can't see any reference to a static context.... here is my code; thanks in advance! import java.util.*; public class person { public String name[]; public … | |
I am having a world of problems with this can anyone please help. I don't know what I am doing wrong. Following the code is the error message I am getting. Here is the code I am using: [code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html > <head> <meta … | |
hello .... I need a java code that convert from eqn ( or bench ) format to verilog format.... Does anyone has an idea?! Thanks in advance.... | |
[code] Hello, I am writing a small java code which read from a text file line by line and parses each read line(hash seperated). Here is the code snippet: in =new BufferedReader(new InputStreamReader(new FileInputStream("file.txt"))); while((linedata =in.readLine())!=null) { System.out.println("Linedata: "+linedata); strparse = linedata.split("#"); line = strparse[1]; System.out.println("Line Number:"+strparse[1]); } the data … | |
Hi. I am writing a text-rpg game using c++ and I want to save the gave somehow. How can i do it? Thank you. | |
:S Can you explain me how to link classes with each other? | |
Hello everybody, I have a problem regarding setfocus. I have a datagrid with 3 columns: MinAge, MaxAge and Code. In Code column I need to generate a code on set focus event. I mean ... when you click on Code textbox (in edit mode) to appear automatically the code. Can … | |
[code=c++]//Four In a Row #include <iostream> #include <string> #include <vector> #include <algorithm> #include <cctype> #include <cstdlib> #include <ctime> using namespace std; // global constants const char X = 'X'; const char O = 'O'; const char EMPTY = ' '; const char TIE = 'T'; const char NO_ONE = 'N'; … |
The End.