199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ytechie

hi. I have a method that searches a database using the contents of a textbox. I don't want people to be able to type "%" and retrieve all of the info... If UsernameTextBox.Text = [COLOR="Red"][B]""%""[/B][/COLOR] Then badlogin() End If

Member Avatar for ytechie
0
82
Member Avatar for tquiva

I am creating a program that calculates the average for a bunch of numbers. The first input is the number of values, and the second output is/are the numbers. For example, with the inputs of the following, I would get the outputs afterward. 5 10 20 30 40 50 Average …

Member Avatar for Aia
0
3K
Member Avatar for skiabox

I have a project written in vb.net and I am trying to convert it to c#. I have managed to convert it except from one file. Here is the old code of the file : MyWebExtension.vb [CODE] #If _MyType <> "Empty" Then Namespace My ''' <summary> ''' Module used to …

Member Avatar for kvprajapati
0
467
Member Avatar for pirateninja1111

so i need some help, have random int that decide which values in my Boolean array are true. All th [CODE] System.out.println ("pick a number 1-9"); int guess; for ( int i = 0; i < 9; ++i ){ guess = console.nextInt(); if (x[i] = true) { System.out.println("CORRECT!!"); }else if …

Member Avatar for pirateninja1111
0
92
Member Avatar for dondajr

Hi guys o/ I have a friend that is doing a paperwork about the engine XNA and how use it. anyone has something about XNA? Can be anything... ebook, tutorial, history, forum.. etc. Thanks for any help.

Member Avatar for noey699
0
75
Member Avatar for rohitmanhas_12

Need to delete the selected item from the dropdown from the database with the button click.Also when user clicks the delete button i need to show the alert or confirm dialog box for confirmatiuon that user realy want to delete that item....plz help me ...

Member Avatar for Freon22
0
1K
Member Avatar for tphuoc

I'm basically trying to either mimic the BindingNavigatorAddNewItem button or utilize it. Ideally I'd like to make my original code work. The code for my on "Add New Ticket Button" click simply clears the fields on my form and determines the next number to use for a TicketNum, and Places …

Member Avatar for tphuoc
0
558
Member Avatar for beginner233

Hi I would really appreciate if someone could tell me what I am doing wrong. I think I have a major error but I can't seem to find out where it is =( My assignment is due tomorrow so if anyone would be up right now and could tell me …

Member Avatar for BestJewSinceJC
0
163
Member Avatar for raul15791

Hi, I have a problem here. I have a project running on localhost. Whenever I made some changes on a .aspx file, the changes can be seen immediately when I access my localhost. But when I made changes in aspx.vb file, the localhost still showing old info. * I have …

Member Avatar for raul15791
0
1K
Member Avatar for stryker4526

As a prerequisite, here is the code for my two classes, Station and SubwaySystem: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assignment7 { class Station { //attributes private string stName; private int stID; private Station next; private Station previous; //properties public string StName { get { return this.stName; …

Member Avatar for jonsca
0
125
Member Avatar for NitaB

Hey guys! I'm trying to write a recursive function to take a number in binary form and change it to decimal. As of now I am having the dumbest problem. I can't seem to take 2 to a variable power. This is probably something so basic but I'm drawing a …

Member Avatar for jonsca
0
138
Member Avatar for penguin22

Hi, I keep getting the error Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) when i try to make a guid. [CODE] string entryNum = Convert.toString(entryNo); Guid key = new Guid(entryNum); [/CODE]

Member Avatar for penguin22
0
3K
Member Avatar for xofth

I want to get only y and n from user to enter when user try to enter another it get the input again until user enter "y" or "n" i use this logic but its not working [CODE] do { cout<<"\n\n Enter Number: "; number=getche(); cout<<"\n Want to enter another:(y/n)"; …

Member Avatar for xofth
0
226
Member Avatar for angrycoder

I'm supposed to create a program that takes a input file and goes through it and outputs it into a index file and counts the number of times a word appeared. It is only supposed to do words that are 3 letters or longer and I can't figure out how …

Member Avatar for Lerner
0
158
Member Avatar for Drunk.scientist

I am getting an Error stating canot convert string to Char type code is as follows [code] /* Jonathan Thomas ITSE 2421 intro to object C++ begin sudo code: function takes in string variable called "verb" function uses string function verb.length to determine length of string assigns value to size …

Member Avatar for jonsca
0
208
Member Avatar for vmirz

My goal is to implement a sorting into a linked list. I have everything working thus far, but I'm a bit stumped as to how I need to change my insert function in order for an element to be placed in the appropriate location. Here's my code thus far: [CODE] …

Member Avatar for VernonDozier
0
143
Member Avatar for dls_20022002

IS THERE ANYONE OUT THERE THAT KNOWS HOW TO WRITE TO A FILE'S LINE, WITHOUT CHANGING OR DELETING ANY OF THE OTHER LINES FOR EXAMPLE IF A LINE SAYS Status: Show and i want it to change that line to Status: James plz help

Member Avatar for Lerner
0
82
Member Avatar for TransKim

Hullo, I would like some one to help me connect my access database to my website. The Database Name is school.mdb and the website is <URL SNIPPED>. Thanks

Member Avatar for tsemagi2006
0
135
Member Avatar for Jaxzen

My program is supposed to essentially be something like Wheel of Fortune. As long as the user guesses letters that aren't in the word, the program behaves properly. But, when the user inputs a letter that IS in the word, the program stops and doesn't continue at all. [code] #include …

Member Avatar for Lerner
0
176
Member Avatar for noahssite

Let's say I have form1 and form2. Form1 and Form2 are open. You click a button on Form2 and it adds 1 to a variable called myNumber on Form1. Now the problem is I can't use the new keyword and create a new instance of Form1, because Form1 declares myNumber …

Member Avatar for noahssite
0
108
Member Avatar for Danny_501

Hi all, Im using hibernate in netbeans to map to a mysql database, but am having problems.... when I open a session: [CODE]Session session = SessionFactoryUtil.getInstance().openSession(); session.beginTransaction();[/CODE] it prints out this in the console:... [COLOR="Red"]12/04/2010 9:50:26 AM org.hibernate.cfg.annotations.Version <clinit> INFO: Hibernate Annotations 3.3.1.GA 12/04/2010 9:50:26 AM org.hibernate.cfg.Environment <clinit> INFO: Hibernate …

0
108
Member Avatar for computerfox

Okay, so I'm not sure why this is happening, but I have a table full of data and I got the edit link working for the top of the stack, but when I want to edit another entry, it keeps pulling in the info from the top ID. Is this …

Member Avatar for computerfox
0
126
Member Avatar for phobia1

Hi Guys I'm back...greetings to all and thanks for keeping in touch. Not sure even where to post this question but php section usually is cool. Is there any guru here willing to help me make a display of exchange rates on my site? I only need Euro, Sterling, USD …

Member Avatar for waelm2010
0
372
Member Avatar for pareshverma91

can any one please give me a link from where i can find out how python executes internally,i mean the way objects are declared, stuff stored etc.

Member Avatar for scru
0
108
Member Avatar for peppermints

[CODE]from Tkinter import * import random weapons = ("rock", "paper", "scissors") class Application(Frame): def __init__(self, master): Frame.__init__(self, master) self.grid() self.create_widgets() def create_widgets(self): Label(self, text = "Choose your weapon!\n" ).grid(row = 0, column = 0, sticky = W) Label(self, text = "Weapons:" ).grid(row = 1, column = 0, sticky = W) …

Member Avatar for jcao219
0
714
Member Avatar for daveoffy

Hello, I have a program where after you login, I need it to re-design the whole window. Is there a way I can change the WndProc to make the code cleaner. Thanks. I have a case for the login if successful, so it will be put in there.

Member Avatar for strmstn
0
134
Member Avatar for Swingjohn

I just cannot figure out what is wrong, so tried. Can someone please help me so I can finish this today or tomorrow please. [code] //adds all 10 panels together this.add(mainpanel); //set see the frame setVisible(true); } JOptionPane.showMessageDialog(null,"Oringinal Balance = $" + recieveAmount + "\nPayment#" + x + "\nMonthly Payment$" …

Member Avatar for Swingjohn
0
89
Member Avatar for benqus

Dear Dudes! =) If anybody has a complete list of php methods separate in a file, please share it with me! I really need a txt file containing all of the PHP methods. It goes for my diploma work also... =) Ex: [CODE] for(){} //new line if(){} //new line switch(){} …

Member Avatar for benqus
0
149
Member Avatar for tphuoc

I have figured out how to populate the comboboxes for an app I'm making from a database this is not the actual code but is basically the way I'm populating them [code] for i = 0 to maxrows - 1 cbobox.items.add(dataset.tables("datatablename").Rows(i).Item(x)) next i [/code] I need either to be able …

Member Avatar for tphuoc
0
98
Member Avatar for LevyDee

Im teaching myself the Win32 API, so im messing around learning functions and what not. So how do I change the text on the button if it is clicked? I cant figure it out. Thanks [code] #include <windows.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); const int …

Member Avatar for LevyDee
0
108
Member Avatar for jgehlot09

I am trying to write an function, which takes an string as input and do something and return the strings. Here Is a small try from my side. [CODE] #include<stdio.h> char algo(char n) { char result[15]; if(n=='1' || n=='2' || n=='3' || n=='4' || n=='5' || n=='6') { result = …

Member Avatar for Adak
0
98
Member Avatar for seacase

I am having trouble adding the ability to order an integer array in both ascending and descending order. I have implemented the functions myself and am having trouble figuring out how to order them in reverse order. I am passing in a boolean variable to test which direction the array …

0
115
Member Avatar for PDB1982

I had my code working properly, but once I added my last array, it goes through the compile and then errors out....and I'm not quite sure why.... [code] #include <iostream> #include <fstream> #include <cstdlib> #include <cmath> using namespace std; int main() { double num[100], sum, count, newnum[100]; int j,i; ifstream …

Member Avatar for PDB1982
0
83
Member Avatar for nats01282

Hi all im after a piece of code that allows the user to enter a fraction e.g 1/4 and have the code split that fraction into 2 seperate variables, e.g variable 1 containing the '1' variable 2 cantaining the '4' How would i achive this? My objective is to make …

Member Avatar for nats01282
0
171
Member Avatar for soroush68

There's a simple question? how to print the size of a variable without using functions like sizeof() ? for example if you were asked to write a program that prints size of int without using sizeof() with a resault as below: cout<<sizeof(int);

Member Avatar for bharath404
0
257
Member Avatar for mincus

Hi i have been trying to get a GUI in BlueJ working properly but i hav come across a prolem, i hav 2 buttons which i want to use but when i click them the actionListener wont run my methods. In the action preformed bit i tried to make it …

Member Avatar for llemes4011
0
143
Member Avatar for sdgz747

I am trying to read a file into an array and set the min and max values. At this point in my program, I am trying to just read it into an array and then display that array. I still have more to do in the program, but I am …

Member Avatar for WaltP
0
112
Member Avatar for pateldeep454

My main.java [CODE] public static void main(String[] args) { // TODO code application logic here Rational x = new Rational (); x.num = 2.0; x.den = 3.0; System.out.println (x); Rational.negate (x); Rational y = new Rational (1.0, 3.0); System.out.println (Rational.invert (y)); } [/CODE] My rational.java [CODE] package rational; public class …

Member Avatar for harry010
0
646
Member Avatar for corby

Ok so this is my code below in my member function definition .cpp file. The problem is when I execute the program it will not let me fill the answer for the first question so for example the output is: Please enter the name of the receiver: Please enter the …

Member Avatar for corby
0
108
Member Avatar for Enders_Game

***Editted: added second problem I have this code, how do I make it stop once it's found the first instance of the [B]if[/B] happening. break, myparser.close(), and return don't work. [CODE]from html.parser import HTMLParser class MyHTMLParser(HTMLParser): def handle_starttag(self, tag, attrs): if tag == 'a' and (attrs[0][1].find('downloads&showfile') != -1): print(attrs[0][1]) print(attrs[1][1]) …

Member Avatar for Enders_Game
0
170
Member Avatar for lewashby

In the code below I can't understand the line [COLOR="Red"]List<Surface> sfcStars = new List<Surface>();[/COLOR] What's going on here, and what are "<>" those doing in the code, I've never seen the before. I got this code from [url]http://www.tuxradar.com/beginnerscode[/url] [CODE]using System; using SdlDotNet.Graphics; using System.Collections.Generic; using System.Drawing; namespace TroutWars { class …

Member Avatar for apegram
0
122
Member Avatar for gregarion

Hey guys for my assignment i have to write a program which checks the information inside a text file to make sure it is all integers and then convert the integers to roman Numerals. My program seems to have a bit of a problem and im not sure where exactly …

Member Avatar for r.stiltskin
0
279
Member Avatar for bohongtw

Hi there, i m working on dining philosopher problem , i wrote some codes but i keeps giving some error like : "/tmp/ccMEjOtr.o: In function `philosopherRun': betterDiningPhilosophers.c:(.text+0x7a): undefined reference to `pthread_mutex_trylock' /tmp/ccMEjOtr.o: In function `main': betterDiningPhilosophers.c:(.text+0x54d): undefined reference to `pthread_create' collect2: ld returned 1 exit status " even i try …

Member Avatar for jephthah
0
220
Member Avatar for Q8iEnG

Hi mates :) recently I did this code: [CODE]#include <iostream> #include <windows.h> #include <string> using namespace std; int main() { int check = 1; string dir; string dir2; string name; cout << "Which directory is the file located?\n"; getline(cin, dir); cout << "\nWhere you wanna move it to which directory?\n"; …

Member Avatar for WaltP
0
164
Member Avatar for mauryoung

ok i have this project that i have been working on to fin harmonic,powerful,amicable and perfect numbers i have a few but im at a road block right now and would love some assisstance. [B]POWERFUL NUMBERS[/B] [CODE]#include <iostream> using namespace std; int main() { int endRange = 500, var1, var2, …

Member Avatar for WaltP
0
229
Member Avatar for michael_r

hi i have got a simple table in my database like this: [B]from[/B]|[B]to[/B] bangalore | delhi chennai | mumbai i am using two drop down list to display this data. here is my code: [CODE]<select name="From"> <?php while($row = mysql_fetch_row($result)) { ?> <option value="<?php echo $row[0];?>"><?php echo $row[0];?></option> <?php }?> …

Member Avatar for diafol
0
160
Member Avatar for nelliott10

I am trying to code an update sql command which can be seen in the code below, however, i am getting the following error: - Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/qchqsdju/public_html/project/lines/update_line.php on line 40. The code is: - [CODE] <? // Connect database. …

Member Avatar for diafol
0
89
Member Avatar for nelliott10

I am a bit of a newbie to PHP and have produced a dynamic form for a uni project, however, I am unsure how to code the PHP script which will insert the data inputted through the form into a SQL database. The code for the form can be seen …

Member Avatar for diafol
0
139
Member Avatar for ssDimensionss

hey guys, as well all know, C rounds downwards, anyway, i'm trying to write a function that would make it round upwards, and got something like this: [code=c] int round_up(float x) { int y = 100*x; double z = 100*x-y; if(z>0) y = (x+0.01)*100; else y = x*100; return y; …

Member Avatar for 0x69
0
6K
Member Avatar for mithunp

Trying to write strcat function, kindly review the code and post the comments.[code]char* mystrcat(char* dest,const char* src) { char* ptr; ptr = dest; while(*dest++ != NULL); dest--; while(*dest++ = *src++); return ptr; }[/code]

Member Avatar for Ancient Dragon
0
103

The End.