199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tanvirahmad

Hi experts i m using this code for create new table and add data in this table from old table, but i need to sort or filter my old table before adding new table, how i can this?[code]Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click 'Create …

Member Avatar for kvprajapati
0
109
Member Avatar for RickyG

Last date value (Next Training ) gets properly inserted but not the rest... any clue? [ICODE] <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/JABILMCALLEN.mdb" DeleteCommand="DELETE FROM [Certifications] WHERE [CertificationID] = ?" InsertCommand="INSERT INTO [Certifications] ([EmployeeID], [TrainingDocID], [StartedTraining], [EndedTraining], [EvalutationType], [TrainedBy], [NextTraining], [Approved]) VALUES (?, ?, ?,?,?, ?, ?, ?)" SelectCommand="SELECT * FROM [Certifications]" UpdateCommand="UPDATE …

Member Avatar for dnanetwork
0
122
Member Avatar for SpyrosMet

hello forum I need help in making a function that randomly chooses between two numbers that I give through the parameters. Please give me a hint or something. Thanks in advance guys.

Member Avatar for Narue
0
533
Member Avatar for tomer999

I just had the first session of an assessment this morning which I'll be doing over the next couple of weeks. I'm have some troubles though on deciding the architecture of the database; if anybody could provide some advice I'd be very grateful. The scenario we've been provided runs somewhere …

Member Avatar for asaukani
0
263
Member Avatar for khan17

hello all, pls have some patience to read this and help me. Im a student and doing a project using CSharp. Im doing an automation process. For which i ve to login to a website click some links and then download files from there. I cant download all the files …

Member Avatar for mcriscolo
0
109
Member Avatar for Lapixx

Hi, I'm trying to create a textgame in python, and after searching for a few topics about it I though I knew how to make it. Many textgames use a system like this: [CODE]def room_one(): #do stuff if something: room_two() def room_two(): #do stuff [/CODE] Most of the time the …

Member Avatar for ultimatebuster
0
168
Member Avatar for TrustyTony

Here is my newest baby, the pretty.py module, born today, which I start to use instead of pprint module. Reason to make this (in addition to that it is possible to do) is that I had this problem, sorry long, LONG example: UPDATE: take out the [CODE]or j[/CODE] that was …

Member Avatar for TrustyTony
0
2K
Member Avatar for alabandit

I generate an array from the folders in a directory; which is placed in an array. i then compare it for changes in the currant folder.This way i can monitor for new files that are add to the system and trigger the script. but i am having problems comparing the …

Member Avatar for alabandit
0
124
Member Avatar for atullalit91

In 2dys code, m trying best for updating values on the basis of id coumn value but its not updating... thn i tried to target data using select command.. nd it shws d result thr4 now m confused wth update command... plss chkout ths code as well... [CODE]<?php $host="localhost"; $username="root"; …

Member Avatar for atullalit91
0
122
Member Avatar for krunalkakadia

hi guys, i want to give new line after fixed amount of characters(say after every 100 characters) in the textbox.as i have to display my news content which is very large. pl guide me for that.thanks waiting for ur reply.

Member Avatar for rohand
0
106
Member Avatar for tiny7415

I am looking for a host that supports jsp files and xml. I went to several host provider and I noticed that most of them supports asp and not jsp. Is jsp a standard language that every host supports it?

Member Avatar for Camy
0
150
Member Avatar for lishannx

I have a program and i want to make the increment keep adding on. I added a while loop but its not working. Anyone help ? [CODE]int Limit = 0; if (e.Button == MouseButtons.Left) { ((PictureBox)sender).Left += (e.X - x); ((PictureBox)sender).Top += (e.Y - y); ((PictureBox)sender).BringToFront(); int Qty = 0; …

Member Avatar for lishannx
0
150
Member Avatar for Carter12

Hello, I need some advice from some of the more expert programmers on what path should I take further in my learning process. I started with PHP and now I can say I do ok, not an expert of course. I like programming very much and I love PHP, it's …

Member Avatar for omol
0
260
Member Avatar for KONTOL

public class AddPlanePanel extends JPanel implements MyObserver { private JLabel planeLabel = new JLabel("New Plane "); private JLabel nameForPlane = new JLabel("Name:"); public JTextField inputPlaneName = new JTextField(15); private JButton button = new JButton("Add"); private JLabel status = new JLabel(); private JLabel typeLabel = new JLabel("Type:"); private String[] typeStrings = …

Member Avatar for moutanna
0
184
Member Avatar for nsutton

I know the code for sending mail is. [CODE] import smtplib fromaddr = 'fromuser@gmail.com' toaddrs = 'touser@gmail.com' msg = 'There was a terrible error that occured and I wanted you to know!' # The actual mail send server = smtplib.SMTP('smtp.gmail.com:587') server.starttls() server.login(username,password) server.sendmail(fromaddr, toaddrs, msg) server.quit() [/CODE] Basically its a …

Member Avatar for nsutton
0
113
Member Avatar for David Mac

Hi All, I think this is my first question here. My web application uses an Access database and I'm getting some strange behaviour which might be related to that. Here's the issue: At the end of processing a users request (during which a lot of calculations are done), a record …

Member Avatar for David Mac
0
154
Member Avatar for tyson.crouch

G'day, I've just been going over MySQL joins and just have a few small questions. 1. Are [B]LEFT[/B] and [B]RIGHT[/B] joins forms of [B]OUTER[/B] only or are the both Inner and Outer? 2. Can you only perform a [B]NATURAL[/B] join on Inner join classifications? Cheerz, TC

Member Avatar for tyson.crouch
0
59
Member Avatar for Exaktor

Hi, I want to make an inventory program and I need help with how to put an add and a delete button in a column. I want that the delete button deletes the row and when I click the edit button a forms comes up so I can edit the …

Member Avatar for Exaktor
0
391
Member Avatar for GeoffC

I have a couple of buttons in html as follows: <tr> <td><a href="member_archive_action.php"><input class="button" name="Change" type="button" id="Change" value="Change" ></a></td> <td><a href="members.php"><input class="button" name="Back" type="button" id="Back" value="Back" ></a></td> </tr> Each of them calls the appropriate php script twice when pushed. The Change button toggles a flag so was apparently doing nothing. …

Member Avatar for amphetkid
0
81
Member Avatar for Exaktor

See the image below to understand better. [URL="http://img18.imageshack.us/img18/9086/inventoryadd.jpg"]http://img18.imageshack.us/img18/9086/inventoryadd.jpg[/URL] When I click add button in form2 it doesn't show any changes in the datagridview does anyone know what code I should use so the datagridview changes when I click add. I am now using a update button and that shows the …

Member Avatar for Exaktor
0
115
Member Avatar for Xufyan

find the max value in an array ? can anyone tell me whats wrong with this program ? i've just learned what are arrays so don't know much about it, i want to write a program that prints the max value inside an array. i wrote this: [CODE]int main(void) { …

Member Avatar for MageBane
0
248
Member Avatar for Aeronobe

I'm having this problem with passing a variable. Basically i'm trying to find every url in a HTML document. I'm doing this using the HTMLParser class (i made an extension of it). This is the code: [ICODE]class Parser(HTMLParser.HTMLParser): def __init__(self, url): HTMLParser.HTMLParser.__init__(self) req = urllib2.urlopen(url) self.feed(req.read()) def handle_starttag(self, tag,attrs): if …

Member Avatar for Aeronobe
0
96
Member Avatar for death.cometh

I'm trying to display some data from a MS Access database to a data report. It was successful, unfortunately, I need to display it in the format below: [B]emp_name[/B] [B]date[/B] [B]remarks[/B] [INDENT][INDENT][B]date[/B] [B]remarks[/B][/INDENT] [/INDENT] [INDENT][INDENT][B]date[/B] [B]remarks[/B][/INDENT] [/INDENT] [INDENT][INDENT][B]date[/B] [B]remarks[/B][/INDENT] [/INDENT] [B]emp_name[/B] [B]date[/B] [B]remarks[/B] [INDENT][INDENT][B]date[/B] [B]remarks[/B][/INDENT] [/INDENT] [INDENT][INDENT][B]date[/B] [B]remarks[/B][/INDENT] [/INDENT] [INDENT][INDENT][B]date[/B] …

Member Avatar for Bashir ahmad
0
129
Member Avatar for Amoryethel

This is my first post here, so excuse me if I'm not posting my question in the correct format. I'm trying to make a program that determines whether the score entered is passing (higher than 70.0) or failing (lower than 70.0). The array I'm using needs to be declared as …

Member Avatar for moutanna
0
107
Member Avatar for Cap'nKirk

Hi, I have a panel on a form and am displaying a picturebox on that panel. I have set the Panel Autoscroll to true. Even when I manually make the panel smaller than the picturebox, no scrollbars are shown, why is this? Here is the code I am using to …

Member Avatar for Cap'nKirk
0
983
Member Avatar for Qwazil

Hey all, I'm a beginner. When i feed a list of lines into this for statement, i have trouble getting the output into a set for use outside of the for statement. [CODE] ListofWordsinLines = {} words = [] for line in ListOfLines: words = line.split() ListofWordsinLines = set(words)[/CODE] if …

Member Avatar for TrustyTony
0
159
Member Avatar for ams_chelseafc

I have written the following Code which will convert an integer number to a roman..I have a array list of integer number which I pass through a for loop and the return value is individual converted Roman character.. My Issue is when the converted value is returned from the function …

Member Avatar for jephthah
0
811
Member Avatar for the_preface

I'm writing a program which accepts the price of a tour. A tour is priced between 29.95 and 249.99. It's supposed to repeat until a valid price is entered... However, even when it is, the program continues to repeat. Here's what I have so far. [CODE] import java.util.Scanner; import java.util.InputMismatchException; …

Member Avatar for the_preface
0
126
Member Avatar for leesho

its a random number generator [CODE]#include <iostream.h> #include <stdlib.h> #include <time.h> #include <iomanip.h> using namespace std; int main () { const int MAX_RANGE = 100; int value; int random = rand( ); int num = ((random % 100) + 1); int quit; do { srand (time (NULL)); value = rand() …

Member Avatar for WaltP
0
161
Member Avatar for RisTar

Hi, I created a couple of web applications with php and mysql and i have a problem that keeps coming up. I want to use html text boxes that will send information to the database but i want it to include line breaks.... until now i just typed in <br/> …

Member Avatar for RisTar
0
88
Member Avatar for ebay1989

Hey guys, I'm new to all this but basically I've been given the task to create a simple C# board game using the console screen. The game consists of a 36 square board and 2 players (player 1 & player 2). Both the players take it in turns to roll …

Member Avatar for phoenix911
0
5K
Member Avatar for lotrsimp12345

Here's the assignment: You are to create a single server (in either Java or C/C++) which can service both C/C++ and Java clients. The protocol of the server is as follows: 1. The client contacts the server. 2. The client performs a single send of a data packet containing the …

Member Avatar for moutanna
0
1K
Member Avatar for noobuser

Hi, can anyone help me with this program. the program inputs a string and replace the first char with the second one. [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX 200 int main(void) { char myString[MAX]; char getCh; char setCh; int i = 0; printf("Please enter the string: "); gets(myString); …

Member Avatar for noobuser
0
175
Member Avatar for kiyu2keith

How do you terminate the program?? for example I input exit on the dialog box as it should terminate the program. I really don't have any idea on how to do it.

Member Avatar for kiyu2keith
0
78
Member Avatar for xylude

I am trying to get a variable to increment in a function called by setInterval. It does one then stops... All I want is for the slider function to loop through the array over and over again, but it seems to like stopping after the first one. Here is the …

Member Avatar for rajarajan2017
0
166
Member Avatar for jpl1993

class tennis: def __init__ (self, name, rank, tournamentsPlayed, country, racquetBrand): self.name = name self.rank = rank self.tournamentsPlayed = tournamentsPlayed self.country = country self.racquetBrand = racquetBrand #defines each thing^ def __str__(self):#creates a string return self.name + ":" + self.rank + "\n" + self.tournamentsPlayed + "\n" + self.country + "\n" + self.racquetBrand …

Member Avatar for TrustyTony
0
140
Member Avatar for new2programming

Hi i am using Visual c++ with SDL I have been using a tutorial from lazy foo productions but when i go to build my solution my complier says: Cannot open include file: 'SDL.h': No such file or directory

Member Avatar for new2programming
0
916
Member Avatar for ajwei810192

Hi, I am a newbie in Ajax, and I am trying to figure out how to pass the value of an item from my HTML form through Javascript/Ajax. Here is the code: <form action="" id="name"> <p><input type="checkbox" value="Weather" name="news[]" onclick="showRSS(document.name.news[].checked)"/> Weather</p> This is what I have in my showRSS function: …

Member Avatar for rajarajan2017
0
8K
Member Avatar for BestJewSinceJC

I was going to post this in the linux/unix board, but there is no 'start new thread' button. Why is that? Anyway, I'm going through a ton of steps to apply a patch file. Everything in the patch file seems to apply seamlessly, with one exception. My patch file is …

Member Avatar for BestJewSinceJC
0
65
Member Avatar for vextorspace

I have a JFrame that I call from another JFrame like so: [CODE] Viewer2D v = new Viewer2D(this); v.setVisible(true); v.DrawAssembly(glNameList.get(hitRecs.get(0).getNames()[0])); [/CODE] I set the exit action to an action listener and call dispose() and both of my JFrames disappear! How do I get only the one I'm working on to …

Member Avatar for BestJewSinceJC
0
88
Member Avatar for trpsjt2008

I Make Encode Text Program Then I use Function [CODE] TextBox2.Text = Passed(Microsoft.VisualBasic.Right(nowvalue, 5)) & " " & TextBox2.Text [/CODE] And It tell This Error [CODE]Operator '&' is not defined for types 'System.Drawing.StringFormat' and 'String'.[/CODE] Why "&" is caught in function but it seperate from "()" First And My Code …

Member Avatar for kvprajapati
0
88
Member Avatar for bigsurya

I am getting a NullPointerException in the statement which I've hidden. Can some1 tell me why is it so ? [code] import java.io.*; class College { String branch,name = new String(); int avg_marks,rno; InputStreamReader in= new InputStreamReader(System.in); BufferedReader buf= new BufferedReader(in); String s=new String(); void read()throws IOException { System.out.println("Enter name"); …

Member Avatar for bigsurya
0
133
Member Avatar for ubi_ct83

Hello experts, actually i have a situation like this. i have a drop down menu value:{2,3,4,5,6}. there is a common operation need to be done if any number in menu list chosen.each of the number must have different number of layers. if user choose 2 means 2 layers,if 3 means …

Member Avatar for ubi_ct83
0
154
Member Avatar for ukshir

Hi, I have a custom control. I need to add a property, say, Comparison, to the control. The property should be set at design time using a dropdown. The Dropdown will have String values like '=','>','<' etc. I tried using Enum values and working perfectly but I need to do …

Member Avatar for ukshir
0
129
Member Avatar for needanswer

I have 1 tabcontrol with 2 tabpages, each tabpage with 1 datagridview (different tables for each), I load these 2 databases on the form load: [ICODE] Me.AnndepTableAdapter.Fill(Me.HonorDataSet2.anndep) Me.SysdepTableAdapter.Fill(Me.HonorDataSet.sysdep) Dim sql1 As String Dim con1 As New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=C:\Users\user\Desktop\honor.mdb") con1.Open() sql1 = "SELECT * FROM sysdep" Dim adapter1 As New OleDbDataAdapter(sql1, …

Member Avatar for needanswer
0
419
Member Avatar for NathanOliver

Hey All Yesterday I was writing a recursive form of a prime factorization program and I wasn't sure about the syntax I used. the function works as is but I'm curious if I am being redundant or if this is the proper way to code it. Here is what I …

Member Avatar for NathanOliver
0
134
Member Avatar for speedy94519

Hey guys im having trouble writing this code for my function. I have the idea down and a way to solve the problem but im having trouble writing it in C code. Basically im writing a function that runs exactly like the function strcat from the string.h library but we …

Member Avatar for anonymous alias
0
361
Member Avatar for sourabhtripathi

[CODE]#include<stdio.h> #include<conio.h> int main() { int dec,rem,ans=0; printf("Enter the Decimal number\n"); scanf("%d",&dec); while(dec>=2) { rem=dec%2; dec=dec/2; if(rem==0) ans=ans*10; else ans=(ans*10)+1; } printf(" binary number is"); while(ans>0) { rem=ans%10; ans=ans/10; printf("%d",rem); } getch(); return 0; } [/CODE] this code is not working properly for example for 10 it gives 01, should …

Member Avatar for abhimanipal
0
159
Member Avatar for paragouldgamer

This is a rookie question and don't really know how to word it so that google finds me an answer, but can someone give me an example of a query using multiple WHERE restrictions so I can see how to format my query?

Member Avatar for paragouldgamer
0
59
Member Avatar for coolguy_003

Hi, I did the stack implementation using arrays and i would like to do it with function pointers but i have no idea. If anyone could help by illustration that would be great as function pointers is pretty difficult for me! Thanks in advance. coolguy

Member Avatar for anonymous alias
0
269

The End.