199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for WhYuLoOkIn

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 …

Member Avatar for WhYuLoOkIn
0
152
Member Avatar for edek

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 …

Member Avatar for azwiz
0
121
Member Avatar for gabanxx

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 …

Member Avatar for gabanxx
0
88
Member Avatar for Shank89

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 …

Member Avatar for Shank89
0
136
Member Avatar for redprawn_89

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. …

Member Avatar for redprawn_89
0
122
Member Avatar for pit1031

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]

Member Avatar for ctj
0
101
Member Avatar for savinki

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] …

Member Avatar for Duoas
0
156
Member Avatar for fusi0n423

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 …

Member Avatar for Duoas
0
110
Member Avatar for chronoel

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 …

Member Avatar for MidiMagic
0
87
Member Avatar for tondeuse34

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

Member Avatar for tondeuse34
0
131
Member Avatar for vanessia_1999

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 …

Member Avatar for vanessia_1999
0
109
Member Avatar for Nemoticchigga

Is there a way to make a visual studio 2005 form repaint itself every 'x' number of milliseconds? Thanks.

Member Avatar for Nemoticchigga
0
55
Member Avatar for tefflox

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"); …

Member Avatar for effu
0
82
Member Avatar for yassar

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, …

Member Avatar for ertugrul
0
250
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
109
Member Avatar for mandar2886
Member Avatar for jwenting
0
240
Member Avatar for lahom

[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: " &amp; Err.Description &amp; " -&gt; " …

Member Avatar for mitrmkar
0
275
Member Avatar for Mackjan

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 …

Member Avatar for woooee
0
157
Member Avatar for cookiedianne760

[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"); …

Member Avatar for jephthah
0
120
Member Avatar for supriya.iiita

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 …

Member Avatar for ~s.o.s~
0
212
Member Avatar for xyinyangx

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 …

Member Avatar for xyinyangx
0
764
Member Avatar for 9107you

[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 …

Member Avatar for Ezzaral
0
160
Member Avatar for scarface3288

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: …

Member Avatar for scarface3288
0
102
Member Avatar for Kob0724

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 …

Member Avatar for Kob0724
0
271
Member Avatar for daviddoria

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 …

Member Avatar for daviddoria
0
93
Member Avatar for sash007

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 …

Member Avatar for sash007
0
134
Member Avatar for dbdork

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 …

Member Avatar for dbdork
0
256
Member Avatar for Lukezzz

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 …

Member Avatar for Lukezzz
0
122
Member Avatar for dnsl

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 …

Member Avatar for jbennet
0
108
Member Avatar for SHAWTY721

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 …

Member Avatar for SHAWTY721
0
70
Member Avatar for Beemer

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 …

Member Avatar for Salem
0
103
Member Avatar for dotNetDummi

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 …

Member Avatar for viv.shankar
0
84
Member Avatar for guido_sarducci

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 …

Member Avatar for guido_sarducci
0
145
Member Avatar for jascase901

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 …

Member Avatar for woooee
0
92
Member Avatar for alivip

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) …

Member Avatar for Freaky_Chris
0
244
Member Avatar for MikeyFTW

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 …

Member Avatar for kdoiron
0
123
Member Avatar for hezfast2

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 …

Member Avatar for hezfast2
0
111
Member Avatar for usmanabb

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 …

Member Avatar for usmanabb
0
728
Member Avatar for nmpgaspar

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 …

Member Avatar for majestic0110
0
262
Member Avatar for blackbeard

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 …

Member Avatar for blackbeard
0
1K
Member Avatar for isomillennium

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` …

Member Avatar for nav33n
0
114
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
147
Member Avatar for roadrage75

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 …

Member Avatar for javaAddict
0
155
Member Avatar for ammwebmaster2

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 …

Member Avatar for Thirusha
0
176
Member Avatar for EngSara

hello .... I need a java code that convert from eqn ( or bench ) format to verilog format.... Does anyone has an idea?! Thanks in advance....

Member Avatar for masijade
0
140
Member Avatar for programmer321

[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 …

Member Avatar for javaAddict
0
195
Member Avatar for hocuz pocuz

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.

Member Avatar for Ancient Dragon
0
261
Member Avatar for WondererAbu
Member Avatar for menelaussa

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 …

Member Avatar for menelaussa
0
116
Member Avatar for hocuz pocuz

[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'; …

Member Avatar for hocuz pocuz
0
111

The End.