43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for linuxoidoz

Hi, What's the easiest way to check whether an item is in a list and then get to that element and do something with it? So far I can think of [CODE] if x in List: for x in List: if x = y: do something [/CODE] Thank you.

Software Development python
Member Avatar for linuxoidoz
0
31K
Member Avatar for tyson.crouch

G'day, I've just been cleaning up some of my queries, and have opted to use a MySQL view for simplification of my queries, as i was using multiple queries to get the values that i wanted. However, I cannot quite figure out how to iterate through the view. My view …

Software Development java mysql
0
58
Member Avatar for Lee21

Guyz, i need your help. How will create an array of checkbox, I dont know to create it on vb.net but as far as i know in vb6 you're just going to create a toolbox then if you copy and paste it,it will automatically ask if you want to create …

Software Development vb.net
Member Avatar for Lee21
0
310
Member Avatar for needanswer

Datagridviews on each tab and invisible both id, on the first tab, you will not see the id on the datagridview, but, the second tab, the id is on the datagridview????? HOW TO FIX IT? Thanks.

Software Development vb.net
Member Avatar for needanswer
0
102
Member Avatar for PCKing

I'm a real Noob to programming & am taking a class of intro to Java. I keep getting a variable not initializing error on the nightsA line calculation. I'm going to warn once again I'm a NOOB to this, so any help is appreciated. import java.util.Scanner; public class SunnyDaze { …

Software Development java
Member Avatar for masijade
0
230
Member Avatar for ashukite

I have invoice form bound to a bindingsource and bindingnavigator. In the form I have unit price, quantity and total textboxes. The total textbox text property is set to total.text = quantity.text * unitprice.text in the textChanged event of both quantity and unitprice text boxes. The result is displayed in …

Software Development vb.net
Member Avatar for tuntunbabu
0
144
Member Avatar for samir_ibrahim

Hi, Is there a way to comment multiple line of code in vb.net at once? means not inserting ' in front of each line in case i want to comment 20 lines that will be tedious job? TIA Samir Ibrahim

Software Development vb.net
Member Avatar for kvprajapati
0
244
Member Avatar for Chichano

Hi!! I am working on a POS system, and i have a problem with the project's publication. The system must be installed on over 30 branch, so i need the make a publishing that every time anyone in any branch run the application it get update with the newest version …

Software Development publishing vb.net
Member Avatar for Chichano
0
139
Member Avatar for nola_Coder

I'm creating a simple platform scroller using C++ and the Allegro library, and also .fmp maps created using the tile-based editor Mappy. I have two maps created, which will serve as my two levels. Once the first map is run through, I want to switch to the second map. What's …

Software Development c++
Member Avatar for Salem
0
173
Member Avatar for Cap'nKirk

Hi, I have 2 forms, Main & About. When the About form is showing it is TopMost, now I have added code so that when a LinkLabel is clicked on the About form, the About form closes:- [CODE] Form.ActiveForm.Close(); [/CODE] This works fine except that the Main form is now …

Software Development
Member Avatar for kvprajapati
0
153
Member Avatar for kdcorp87

i have some gif image which i converted to .cursor file and trying o use in my winfrom like that [CODE] Cursor c ; public Form1() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { c = new Cursor("cursors\\newcursor.cur"); panel1.Cursor = c; }[/CODE] but i getting error that cursor …

Software Development file-stream
Member Avatar for kvprajapati
0
155
Member Avatar for GAME

Ok, I have a code that I only want to use for the first form1 load, so that means never use it agian. So how do I use a code once then never use it again?

Software Development
Member Avatar for kvprajapati
0
91
Member Avatar for jeeter19

Hi all, I have a question about moving through the elements in a web browser via C#. I currently am trying to get a checkbox to become unchecked using the HtmlElementsCollection... I have so far been able to implement putting text into a message box that is on a webpage, …

Software Development html-css web-browser
Member Avatar for kvprajapati
0
746
Member Avatar for jumomma

Hi all, I am very much a beginner and I'm struggling just to pass this class..so go easy on me. I keep getting this 1 error and I cannot figure out why. I'm sure it's something simple but I'm at a dead-end here. This is the error I get, it …

Software Development c++ display
Member Avatar for jumomma
0
314
Member Avatar for squigworm

Hello everyone, I am having some trouble getting replaceAll(); to work. I am trying to apply it to a String array that has 4 rows and writing the portion of the code as follows [CODE] for(int i = 0; i < 4; i++){ lines[i].replaceAll("this", "that"); } [/CODE] For one reason …

Software Development java
Member Avatar for squigworm
0
106
Member Avatar for abhimanipal

Hello people I have a small doubt in operator overloading I am trying to overload the assignment operator. Here is my code for that [CODE] class rational { int x; int y; public: //All the constructos rational operator= (rational num) { // Why do we need to return a reference …

Software Development c++
Member Avatar for Ancient Dragon
0
159
Member Avatar for arkanoid

I have been working on a number of card games. Important, of course, is shuffling the deck. I have come up with a few different ways to do this. Currently I do not shuffle, but to deal a card, I lay out the deck in order, selecting a random number …

Software Development linked-list vb.net
Member Avatar for arkanoid
0
202
Member Avatar for valorien

Hi Everyone :-) I'm writing a small Python script that invokes the Linux shell and runs some BASH commands in it. My problem is, I can't seem to use the output and store it in a Python variable. Here's what i'm trying: [CODE] import subprocess value = subprocess.call("ls -la", shell=True) …

Software Development python
Member Avatar for d5e5
0
3K
Member Avatar for prashanth s j

Hi all, How to access the value of WER from the following: [code] valuesfor1 = [('WER', 100)] valuesfor2= [('WER', 700)] [/code] My requirement is I need to compare WER from valuesfor1 with WER from valuesfor2. ie something like [code] if [('WER', 100)] < [('WER', 700)] : print "values for 2 …

Software Development python
Member Avatar for TrustyTony
0
111
Member Avatar for Joey_Brown

Hello. I would very much appreciate if someone would aid me with a hint. My problem is as follows : read two arrays of chars and merge them into a third array like so : ARR1 :123abc ARR2: rt678iogl ARR3:1r2t36a7b8ciogl The problem must be solved without pointers and string.h Basically …

Software Development c
Member Avatar for Adak
0
402
Member Avatar for lukegw

Everytime btnSendClick is execute, 2 messages will be added to the rich edit. The first needs to be of fixed values (BOLD, size 8 etc) The second needs to be changable by the user using a FontDialog box. This is my below code, but it doesnt quite work, it pretty …

Software Development delphi pascal
Member Avatar for lukegw
0
193
Member Avatar for restrictment

Hello everyone, I am trying to make a simple web browser for my own benefit (not a school project). I have been looking through multiple videos on how to do so, and could only find 'simple' web browsers on almost every video for visual c++. Anyway, the videos work, but …

Software Development c++ web-browser
Member Avatar for jonsca
0
214
Member Avatar for FJones

I keep getting these two errors. Timing.java:45: <identifier> expected Public void double squared(double n) ^ Timing.java:54: <identifier> expected Public void double exponential(double n) I can't for the life of me figure out what I am missing. I've been away from Java for about 2 years and I was never really …

Software Development java
Member Avatar for FJones
0
121
Member Avatar for zachattack05

Anyone have any good links to tutorials for printing with C#? I need to mimic a form that we have. It's a rather complex form, so if you know of a tutorial that is better than just printing rows and columns of data would be greatly appreciative!

Software Development c#
Member Avatar for zachattack05
0
169
Member Avatar for giri.pankaj

This code takes in a scrambled input word and gives out the unscrambled list of words. Eg... Input = time Output = mite, item, emit etc. I had posted an unscrambler in java sometime ago. This one is the improvement over the previous one. In the sense, the java unscrambler …

Software Development python
Member Avatar for TrustyTony
0
4K
Member Avatar for luvthug

Hi All, First of all Here is the question and what I have done so far. A) The helper method boolean isVowel (char c) should return true if the character it recieves is an uppercase or lowercase English vowel. For Our purposes, Vowels are the letters a, e, i, o, …

Software Development java
Member Avatar for javaAddict
0
173
Member Avatar for samurai1200

I have a 2D array whose cells represent each character in a terminal window that can either be ON or OFF (boolean). [CODE] bool grid[24][80];[/CODE] Then, using the ncurses API, I grab a key press: [CODE]key = getch();[/CODE] where key is an int type. The 'q' key is what I …

Software Development api c++
Member Avatar for samurai1200
0
696
Member Avatar for NinjaLink

My program is created to output permutations. Depending on the input that I put in, I sometimes get the correct result, but it is not accurate. However, when I do "abc", I get the correct result. When I input peoples names, I get a random result. After trying to figure …

Software Development algorithm c c# c++
Member Avatar for Sodabread
0
133
Member Avatar for mysticstylez

Hi, I have a text file that contains bunch of phone numbers. Some contain invalid characters and some are too long. How do i read this file into a list using regex. I only want valid phone numbers to populate the list, and skip the invalid ones. this is what …

Software Development python regex
Member Avatar for TrustyTony
0
7K
Member Avatar for ranuvishwakarma

hoow to inset into database default image in byte formate when not selecting image from fileupload. protected void subbtn_Click(object sender, EventArgs e) { if (fp.FileContent == null) { Byte[] imgByte = new Byte["image/1.jpg".Length]; } else { FileUpload img = (FileUpload)fp; Byte[] imgByte = null; if (img.HasFile && img.PostedFile != null) …

Software Development image
Member Avatar for rohand
0
110
Member Avatar for deedee2

Hi there, I was wondering if anyone could help me find a procedure in python that takes in an unsorted list, and returns the difference between the largest and smallest values in the list, without using the built in max/min/sort procedures. Thank you!

Software Development python
Member Avatar for deedee2
0
111
Member Avatar for Lee21

hi guyz,how will I find an item that's in the combobox that everytime I pressed the keyboard it will be automatically displayed in the combobox?for example I have Items like cats,pigs,dogs in the textbox then when I press d or do the Items dogs will be displayed..please help me here!

Software Development vb.net
Member Avatar for Lee21
0
73
Member Avatar for bninja

Hi How can i check if some value exists in the data reader How can i do that ? any ideas please .

Software Development vb.net
Member Avatar for Oxiegen
0
223
Member Avatar for sharathk60

please anyone inform me step by step to build a signed jar form a jar.. ie signing a jar file which contains applet

Software Development java
Member Avatar for sharathk60
1
117
Member Avatar for Duki

Hey guys, I'm trying to run this code [code=c++] // Copyright (C) 2001-2003 // William E. Kempf // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <boost/thread/thread.hpp> #include <iostream> void helloworld() { std::cout << "Hello World!" << std::endl; } …

Software Development c++
Member Avatar for Duki
0
145
Member Avatar for sharathk60

Please help to come to from this problem: i had written a sample code to display Hello and imported as jar files then created new dynamic web project and using a hello.jsp page i am calling the applet class but its not display the applect please give me the solutions: …

Software Development java java-jsp xml
Member Avatar for sharathk60
0
337
Member Avatar for Jsplinter

I am trying to write an if statement to test whether two conditions are both true. However, my code does not work when I combine the both tests into one if statement like: [CODE] if((last_smallest < samples[i]) && (samples[i] < current_smallest)) current_smallest = samples[i]; [/CODE] I know it is possible …

Software Development c++
Member Avatar for Jsplinter
0
114
Member Avatar for jemz

hello need help for this how can i trap if my mch_rs!qtyh is zero example H1010 the quantity on hand is 10 then if i input quantity 10 then click the add button so now my H1010 is zero.then if i input again the H1010 it should prompt that the …

Software Development visual-basic
Member Avatar for jemz
0
333
Member Avatar for Bemani_lover

I need some help with classes and methods. Here is what i need to do: 1. Create a concrete class, Robin, which inherits from Bird. Robin has a single instance variable, name, of type String with private access. Robin implements the remaining required methods. Here is the code for each …

Software Development java
Member Avatar for Bemani_lover
0
112
Member Avatar for arsshaw

> Specification: Display a menu > Find Errors in this program #include "stdafx.h" #include <iostream> //change io to iostream #include <string> using namespace std; // added I get the `Error 1 error C2065: 'choice' : undeclared identifier line 17 which is 'choice'` What am i missing? int main ()// added …

Software Development c++
Member Avatar for arsshaw
0
414
Member Avatar for gerard4143

I have a question, well more of a verification. In the program below, I'm packing a character array with some values. The first two are unsigned integers the next is a function pointer and the final is a string of characters...Now my question, is the casting correct for the function …

Software Development c
Member Avatar for gerard4143
1
181
Member Avatar for neosonic

Hi, I would like to know how to free a memory after I am using a imagelist or picturebox/ image file. I have a program who loads picturebox into a imagelist, only 2 pictures at the time. My problem is, after running my program several times (by using "start" command …

Software Development visual-basic
Member Avatar for neosonic
0
375
Member Avatar for bgx90

Can anyone tell me why my recursive find function for a binary search tree isn't working? It keeps returning false when searching for items that are in the tree. Thanks. [CODE=cpp] template<class T> bool BST<T>::find(const T& sitem) const{ //Precondition: // A binary search tree exists // //Postcondition: // If item …

Software Development c++
Member Avatar for bgx90
0
96
Member Avatar for pythonNerd159

im currently trying to create a button widget using Tkiner and would like to know how to get a number from that button when i click on it. I have tried lots of methods and ideas from different people and i still haven't got the right bit of code. any …

Software Development python
Member Avatar for pythonNerd159
0
171
Member Avatar for mattloto

I need to pass a 2D array of int's into a function, which is normally fine, but the issue is that I don't know the last depth of the array. I know how to do it if I knew the length of the last dimension, but it is user defined. …

Software Development c++
Member Avatar for mattloto
0
130
Member Avatar for progr

When making a GUI, does it matter whether you use 'content' or 'this'? For Example: [CODE]content.add(b1);[/CODE] OR [CODE]this.add(b1);[/CODE]

Software Development gui java
Member Avatar for progr
0
86
Member Avatar for Flippers321

I have been working with c# for about a year and with Visual Studio for a couple months. I was debugging a web browser that I made and I found out that when I go to a web site other than google, the url on the search bar remains the …

Software Development c# visual-studio web-browser
Member Avatar for Flippers321
0
124
Member Avatar for Geodude0487

Hey everybody, I was wondering if somebody could help me. I'm having trouble with this assignment, tried to email my teacher a few days ago and he has not returned my email, it's for an online class. The whole chapter is talking about abstract classes and Inheritance and it's very …

Software Development java
Member Avatar for moutanna
0
323
Member Avatar for NinjaLink

In my program below, I am having problems running my program. The error I receive is "could not convert `nextPermutation(((char*)(&elements)), n)' to `bool'" I just want to print out the permutation of ABC. Will someone please check my nextPermutation function to see if everything is correct. I know there a …

Software Development algorithm c++
Member Avatar for NinjaLink
0
116
Member Avatar for T.Dott

Hey all, I have a problem with this particular piece of coding I have for my payroll system in Visual Basic 6. I am basically trying to calculate the wages of employee's by entering in the number of hours they have worked. The criteria of how much pay they receive …

Software Development visual-basic
Member Avatar for T.Dott
0
490

The End.