64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Simplified

Hello all I'm having a few issues with a Python program in that I am performing decimal calculations on and most values come up as desired, however every so often, when there is a very small decimal, the number is represented like "6.80E-7" rather than the desired "0.000000680". Here's a …

Member Avatar for Simplified
0
216
Member Avatar for adamworld

I am working on a site and I want to be able to query the appropriate table based on their location. For example, if they input they live in NY, it should query the NY table. If they input they live in CA, it should query the CA table and …

Member Avatar for adamworld
0
94
Member Avatar for Jessurider

[CODE] SqlConnection cn; cn = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=J:\\Rcar\\motion\\db_image.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True"); if (cn.State==ConnectionState.Closed) { cn.Open(); } SqlCommand cmd; string sq1; sq1 = "CREATE TABLE [B]"+TextBox1.Text+"[/B](myId INTEGER CONSTRAINT PKeyMyId PRIMARY KEY," +"myName CHAR(50), myAddress CHAR(255), myBalance FLOAT)"; cmd = new SqlCommand(sq1, cn); try { cmd.ExecuteNonQuery(); MessageBox.Show("Table Created"); } catch (SqlException sqlexception) …

Member Avatar for Jessurider
0
225
Member Avatar for v_janssens

I'm running a structural analysis program in VS2010 which iterates through a loop up to 4000 times. The program keeps breaking on me around the 960th loop and gives the following error Unhandled exception at 0x0040cd1d in Structural Analysis Program.exe: 0xC000005: Access violation writing location 0x00000000. The error seems to …

Member Avatar for v_janssens
0
464
Member Avatar for liftthis

I have created 3 files: SmsInbox, SmsGetData and SmsMsg. I don't know if I set this up right. I want Phonenumber, message and time to be stored in the Jlist and when I double click it It will print out the phonenumber, message and time. How do I print it …

Member Avatar for Ezzaral
0
99
Member Avatar for an00p

Hello Friends, I have an issue after upgrading my firefox to version 4. This issue was there in IE8 but worked nicely in firefox3 Here is my issue: I have a page with three forms and each form posts using "htmlentities($_SERVER['PHP_SELF'])" action that is to the same page. Based on …

Member Avatar for an00p
0
122
Member Avatar for paycity

Hello java programmers, I want to draw some squares on layers using Graphics2D, course. Here is my source code with problems: [CODE]import java.awt.*; import java.util.ArrayList; import java.util.List; import javax.swing.*; public class Draw extends JPanel { private static final long serialVersionUID = 1L; private List<Cube> cubes = new ArrayList<Cube>(); public static …

Member Avatar for paycity
0
1K
Member Avatar for jrotunda85

I keep getting the following error whenever I try to run this query on my "spot" table: [CODE]#1054 - Unknown column 'a.Longitude' in 'field list'[/CODE] The weird thing is though that the column DOES in fact exist, is spelled the same way, and has thousands of rows of data. Even …

Member Avatar for jrotunda85
0
114
Member Avatar for leo88

hi, i wants to take the items from a listbox and then store to a dictionary list like this: Dictionary<string, double> sortList3 = new Dictionary<string, double>(); In the dictionary, the key is string and value is double. The listbox content is as below: {1 2} 4 {1 4} 6 {1 …

Member Avatar for Mitja Bonca
0
180
Member Avatar for GreaseJunkie

Hi, I've looked around and cannot find an answer to this. I want every email that comes in to a certain email address to get stripped of everything but the subject and email address and get stored into a MySQL database. First, is this possible? If so, how? If someone …

Member Avatar for GreaseJunkie
0
261
Member Avatar for xleon

[CODE]from Tkinter import * master = Tk() def ChangeOpt1(): Options.option_clear() Options.option_add("Apple","Orange","Melon") Options.update() def ChangeOpt2(): Options.option_clear() Options.option_add("Milk","Water","Juice") Options.update() Option1=Checkbutton(text="OPTION1",indicatoron=0,command=ChangeOpt1) Option1.pack() Option2=Checkbutton(text="OPTION2",indicatoron=0,command=ChangeOpt2) Option2.pack() variable = StringVar(master) variable.set("You have to check an option") Options= OptionMenu(master, variable, "You have to check an option") Options.pack() mainloop()[/CODE] I want to do that when I clicked Option1, …

Member Avatar for xleon
0
4K
Member Avatar for JimBobUKII

Hi I was wondering if someone could help me. I have a dropdown list which is populated from MySQL. The dropdown data is classed as sections. When a user selects a section from the dropdown a form on the same page is populate with the section name and they are …

Member Avatar for JimBobUKII
0
150
Member Avatar for veledrom

Hi guys, I have two questions, I wonder if they are possible to implement. 1. [ICODE]<form action="nextform.php" method="POST">[/ICODE] Is it possible to hide nextform.php from other users as I don't want anyone seeing where the data is being POSTed. Or similar solution. 2. Is it possible to hide javascript files …

Member Avatar for Akash Saikia
0
146
Member Avatar for pastagage

Hi there, I am a Delphi guy and I am a bit new to C++. I have this annoying error when I try to compile and I have no idea how to solve this: [B]error: request for member ‘GetVector’ in ‘gff’, which is of non-class type ‘TGff_File*’[/B] on line #20 …

Member Avatar for pastagage
0
291
Member Avatar for vitaquous

I would like to be able to take data from a MySQL DB and place it in various div elements. I would like to do this after the page has been rendered. I know I could do this using JavaScript with innerHTML, but do not know what function to use …

Member Avatar for vitaquous
0
15K
Member Avatar for puvi

hi frens I am trying to pass array in $_SESSION from the abc.php to generatepdf.php. the pdf is not getting generated after i wrote this part of code. this is in generatepdf.php [CODE] foreach($_SESSION['refcode'] as $temp) { $refcode[]=$temp; } foreach($_SESSION['description'] as $temp) { $description[]=$temp; } foreach($_SESSION['unit'] as $temp) { $unit[]=$temp; …

Member Avatar for puvi
0
102
Member Avatar for bigwhiteegg

This question has been bothering me all day. if I'm trying to pull out all strings that are in a txt file and all start with "abcde" is there anyway to find them, and copy the strings?? assuming the txt file contains lots of text

Member Avatar for bigwhiteegg
0
91
Member Avatar for CorruptionInc

OK, here's my assignment: Write static methods public static double sphereVolume(double r) public static double sphereSurface(double r) public static double cylinderVolume(double r, double h) public static double cylinderSurface(double r, double h) public static double coneVolume(double r, double h) public static double coneSurface(double r, double h) that compute the volume and …

Member Avatar for Spiderpig085
0
659
Member Avatar for e-papa

[CODE]#this function checks if a number is a prime number, #if not it outputs the lowest factor. def isprime(n): """Determines whether a number is a Prime number, Takes a single arguement n, which is the number""" if n==1: return 'Not a Prime number, only has one distinct factor' elif n==2: …

Member Avatar for e-papa
0
221
Member Avatar for pito_donje

Private Sub Command2_Click() CommonDialog1.ShowOpen Text5.Text = CommonDialog1.FileName Picture1.Picture = LoadPicture(Text5.Text) Text5.Visible = True End Sub

Member Avatar for pito_donje
0
141
Member Avatar for arsheena.alam

Hi, I have a variable @FranchiseId declared in my stored procedure If I try the following select command, will it work???? SELECT @FranciseId=(select FranchiseName FROM franchise WHERE username=@username),username FROM MyTable I hope you Understood My problem!!

Member Avatar for arsheena.alam
0
127
Member Avatar for vivekagrawal

I have a form form1 and there is a search button for searching the doctor when i click search button then a new form opens i.e. form2 and in form2 there is a data grid view control and i want when i select any doctor and click on apply button …

Member Avatar for vivekagrawal
0
336
Member Avatar for Andrewsc1

I am having trouble figuring out how to get my function (lines 45-57) to work. Option Strict is supposed to be on. I am getting the error "Option Strict On disallows implicit conversions from 'Decimal' to 'String'." This is an intro problem so its going to be basic. [CODE]Option Strict …

Member Avatar for Andrewsc1
0
142
Member Avatar for ITKnight

Hi all, I want to save some form setting at registry, my friend told me that vb has a function to save it.. what it is? and how to use it? Please Help Thanks

Member Avatar for ITKnight
0
701
Member Avatar for Lusiphur

To preface this post I'm going to say that what I'm looking to do is purely in the theorhetical stages at this moment so I don't have any code to share yet. At it's basest essence what I'm attempting to do is compare Image A with Image B to determine …

Member Avatar for arisa12
0
718
Member Avatar for Simran Kaur
Member Avatar for dxider
0
634
Member Avatar for burntout

A company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9% of $5000, or a total of $650. Develop a console …

0
169
Member Avatar for ITKnight

Hi all, How i can split a string that include spaces by "&" ? I already used split function but there are problem with spaces. thanks.

Member Avatar for ITKnight
0
211
Member Avatar for goldeneagle217

I am writing a program that requires toggling between 2 forms. I thought I could use the Hide and Show methods but I need a way for the forms to know about each other so they can Hide themselves and Show the other form. Initially, form1 instantiates form2

Member Avatar for goldeneagle217
0
123
Member Avatar for jmcorpse

Can someone help me figure out what I am doing wrong here. I think I may be running my head into this way to many times to see what is wrong with it. The error code is posted below. [CODE] import java.util.Scanner; public class userName { /** * @param args …

Member Avatar for jmcorpse
0
319
Member Avatar for Despairy

hey i have a problem with a code that i cant figure out what it is im "fresh meat" in assembly so might be a few things what i tried to do is 1) open rnd.txt(65kb) file as read/write ( dump.exe it and you get hex numbers on dos) 2) …

0
72
Member Avatar for Ssnowlin

I have a reg text box and just want to add the save command, I managed to figure out how to do open but save is giving me problems. I am fairly new at VB.net been coding less then a week so I need all the help you can give …

Member Avatar for Ssnowlin
0
114
Member Avatar for efronefron

I dont have any idea what the problem is. But what I know is it stopped at fgets(temp, 256, stdin); when I run the program, it runs this line and then just stopped because of a segmentation fault. The silly printfs are just for me checking where it stopped exactly. …

Member Avatar for efronefron
0
129
Member Avatar for FrancisLazo

Hey there guys I need your help as I do not fully understand the program source code below. This program will multiply two numbers without using the multiplication sign (*). I am confused with the highlighted part, the for loop part. Here it is: [CODE]#include <iostream> #include <string> using namespace …

Member Avatar for FrancisLazo
0
157
Member Avatar for alonewolf23

[CODE]//Created by //Ticket Reservation System of 5 first class and 5 economy tickets import java.util.Scanner; public class Planeticket { public static void main(String args[]) { boolean EconArray[] = new boolean[5]; // boolean array with 5 elements boolean FirstArray[] = new boolean[5]; Scanner input = new Scanner(System.in); int value; for(int i …

Member Avatar for alonewolf23
0
1K
Member Avatar for shack99

Hey everyone, I've got a problem. Say I've got two xml files, a student file and a class file. The class file displays all the students in a class; eg- [CODE] <Class> <Student> a </Student> <Student> b </Student> <Student> c </Student> </Class> [/CODE] And the student file stores the details …

Member Avatar for ddanbe
0
113
Member Avatar for leo88

hi,I work using window form C#, my problem is as below: output += myArray1[prune]; string ipt = null; while ((ipt=re.ReadLine()) != null) { string ListSplitLineByLine1 = ""; String[] SplitItemLineByLine2 = (ipt).Split(new string[] { "\n\r\t", " " }, StringSplitOptions.None); foreach (string lineByLine1 in SplitItemLineByLine2) { ListSplitLineByLine1 += "\r\n" + lineByLine1; } …

Member Avatar for Mitja Bonca
0
2K
Member Avatar for woody0114

Having trouble stopping my do,while loop. It asks the right questions, and I thought I had the right qualifier, while blah>0, do such and such, but it continues in the loop and keeps asking the questions Here's what i've got: cout<<"Now let's subtract the door and window area."<<"How many doors …

Member Avatar for woody0114
0
96
Member Avatar for begueradj

Hi people, I get an error when performing the following request: [CODE] $query=" SELECT * FROM vessel,cargo,customer ORDER BY ladate DESC WHERE vessel.id=cargo.id AND vessel.id=customer.id LIMIT $eu, $limit";[/CODE] it is about the ORDER BY ladate DESC Can you you show me where I should write ORDER BY in the correct …

Member Avatar for begueradj
0
115
Member Avatar for tokenjoker187

I am having trouble making a Windows Form Application. I want to proceed to a second form while closing the first (Going from Main menu to Level 1) but I cant seem to figure out why after the 2nd form loads, both forms close out. Here is the code I …

Member Avatar for vivekagrawal
0
104
Member Avatar for chester1908

Hey all.I got a question about the use of action listeners.Actually its more about actionEvents.Anyway,my question is: Supposing i have a frame with four buttons,say "A","B","C","D". I want each time i press a different button something different to appear on TextField.I know i can make 4 different button subclasses,each with …

Member Avatar for chester1908
0
416
Member Avatar for GlenRogers

Hi, I'm new to Java and programming. I have an assignment I'm trying to do and I'm pretty stumped on this question. I have a TreeMap where the keys are Strings (of musical artists) and the values are Lists (of artist name, album title, album genre and album year). I …

Member Avatar for JamesCherrill
0
588
Member Avatar for zachattack05

Does anyone know if you can use the comparison operators like ==, >=, <=, >, < etc... on two different System.Version objects to detect different versions and in what direction (like which of the two is a newer version vs older?)

Member Avatar for zachattack05
0
80
Member Avatar for Jaseem Ahmed

can u pass an idea... is this is possible to plus all that items(Integer) that are in listbox or listview... e.g a list box have 4 items... 1)-20 2)-40 3)-80 4)-100 is this possible to plus these items,??? items also can b infinite, depends upon user...i dont have any idea, …

Member Avatar for AndreRet
0
139
Member Avatar for Weppies

Hi Can anyone help me. I need to display the username in the lable of the masterpage. But I also have to show the logo of the business of the user. How should I do this! Regards Weppies

Member Avatar for agileswaran
0
813
Member Avatar for serkan sendur

Copy a table from one database to another database in another ms sql server using sql server management studio : If your table was in the same ms sql server but in another database, you would copy it using t-sql like this : SELECT * INTO NewTable FROM existingdb.dbo.existingtable; However, …

Member Avatar for mrroad
0
843
Member Avatar for cyberbemon

hey guys i came across a tutorial online that shows how to make a java media player using JMF..the problem is when i run the program and open the file i get the following error..i googled this and found no help can anyone please tell me whats wrong ? T_T …

Member Avatar for cyberbemon
0
950
Member Avatar for turt2live

Hello, I was wondering if there is some sort of Java code that can get information from a webite ONLY when it needs to. To better explain (by using an example) let's say I have a slow webpage (minimal traffic) where a user clicks a button and Java opens my …

Member Avatar for turt2live
0
249
Member Avatar for Venom Rush

Hi there I'd like to know if it's possible to combine an update and insert query into one query. What I'd like to do is insert new data into one table and update a colum in another table at the same time. For example, there are 3 different baskets (puppy …

Member Avatar for nuraini
0
10K
Member Avatar for kukuruku

HI I have method object appointment ,and inside this object I have another object time and I want to get startHour method(inside the time object) (method startHour(inside TIME(object)inside Appointemt(object)) How can I do that :@ Thanks

Member Avatar for thekashyap
0
78

The End.