43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for henpecked1

I'm looking for a line (or more) of VBA that would tell me how to set the "required" property of a field to "No" instead of "Yes" Just so you have the context, I'm helping someone write a module that imports data into an Access database. Of course, sometimes a …

Software Development visual-basic
Member Avatar for henpecked1
0
188
Member Avatar for sofia85

Hi, I have a file containing one column with values: 3.258 1.345 5.769 1.00 etc... I want to sort this data. I tried to use sort() directly on my raw data but I get error message saying 'str' object has no attribute 'sort'. I now it's basic, but I'm a …

Software Development python
Member Avatar for sofia85
0
133
Member Avatar for KazenoZ

Hello, I'm having this issue with copying files with .NET's File.Copy() method. I have a file, that I want to copy to a couple locations, but when doing something like: [CODE]File.Copy(source, target1); File.Copy(source, target2);[/CODE] I keep getting an exception error about the file being in use. Seeing that if I …

Software Development file-system
Member Avatar for KazenoZ
0
160
Member Avatar for Xaviorin

So new here to daniweb and just finished my first semester of programming 1 and I'm trying to do some extra curricular work to get me prepared for my spring semester. Would appreciate any and all help or suggestions anyone could give me. Here's the issue: So i was trying …

Software Development c++ file-system
Member Avatar for Xaviorin
0
127
Member Avatar for Lemony Lime

I'm pretty new to programming, so this may be really obvious, but I'm having trouble with it. I'm trying to learn python, so I thought I'd make a simple program in python to help me write similar lines of java code faster, (I'm going to easily have hundreds of lines …

Software Development file-system python
Member Avatar for Lemony Lime
0
544
Member Avatar for alaa sam

I need to to send variables between two forms in the same project is that possible ?? also can I change the color of some text in text box but not the whole the text ?? Thanks in advance

Software Development
Member Avatar for alaa sam
0
114
Member Avatar for nubcoder

NEWB alert, lol. This was homework that I failed because i didnt turn it in on time. I didnt turn it in due to the fact that i took an online course, my book sucks and my instructor only checks his e-mail once a wk. that and i couldnt for …

Software Development c++
Member Avatar for nubcoder
-1
129
Member Avatar for caseyt88

Hello, I am taking a computer programming class this semester and working on a project. I am trying to read a text file into a 2D list. The text file contains ten rows and ten columns of numbers, either a 0,1,or 2. When i try to read the file it …

Software Development python
Member Avatar for caseyt88
0
421
Member Avatar for Thermalnuke

I am having trouble with my looping sequence in this program at the end of the program it will let the user choose if they would like to exit the program or start all over again and it exits for both chooses and sometimes it will continue on to the …

Software Development c++
Member Avatar for Thermalnuke
0
182
Member Avatar for galhajaj

Hello :) i worked many time with the Point structure on my projects i noticed that there is a brother to Point calls PointF (its Point with floats as X & Y) the thing i dont understand is why i saw a lot of drawing functions that uses RectangleF and …

Software Development
Member Avatar for gusano79
0
96
Member Avatar for polinolin

i am trying to make web browser control at my form.. my url is : www. gmail.com but, when i'm running my project..i'm getting error.. you can see the error at [url]http://i917.photobucket.com/albums/ad15/popopardede/abcd.jpg[/url] anyone can solve my problem? big thanks

Software Development vb.net web-browser
Member Avatar for polinolin
0
130
Member Avatar for gameguy91

#include <iostream> using namespace std; int main() { int n1,n2,n3,n4,n5; cout<<"input number\n"; cin>>n1; cout<<"input number\n"; cin>>n2; cout<<"input number\n"; cin>>n3; cout<<"input number\n"; cin>>n4; cout<<"input number\n"; cin>>n5; if (n1>n2 && n1>n3) return 0; }

Software Development c++
Member Avatar for gameguy91
0
156
Member Avatar for gameguy91

#include<iostream> using namespace std; int main() { int n1,n2,n3,n4,n5; cout<<"input number1\n"; cin>>n1; cout<<"input number2\n"; cin>>n2; cout<<"input number3\n"; cin>>n3; cout<<"input number4\n"; cin>>n4; cout<<"input number5\n"; cin>>n5; if(n1 < n2) n1 = n2; if(n1 < n3) n1 = n3; if(n1 < n4) n1=n4; if (n1<n5) n1=n5; cout << "The largest number is\n" << …

Software Development c++
Member Avatar for gameguy91
0
262
Member Avatar for rotten69

Hey everyone, I'm wondering why I can't print the values that are in the array. I'm passing an array to the method below and trying to print the result.. the compiler says that "ArrayIndexOutOfBoundsException" What's the problem really? [code] public static int[] treble(int[] nums){ for (int i=0; i <= nums.length; …

Software Development java
Member Avatar for stultuske
0
155
Member Avatar for Trle94

Hey guys i tried getting CodeOrder snippet working but it really messup all my tables and such when i try to add for other groups sorting first 3 works fine but when i try to add more everything gets strange :S so if you can fix it ?? Here are …

Software Development vb.net
Member Avatar for Trle94
0
264
Member Avatar for StephNicolaou

Hi, I have a simple query I've used again and again previously, but in this case it's telling me that it is too complex. I've output this sql string into a message and cannot see any problems with the syntax, I'm completely baffled with this one so any help would …

Software Development visual-basic
Member Avatar for StephNicolaou
0
85
Member Avatar for Blahthing

im having trouble closing this class, ive been trying for 2 hours Its a huge collection of ifs [ICODE] package net.minecraft.src; import java.util.Random; import java.util.*; public class ItemTestItem extends Item { public int TimesShot; public ItemTestItem(int i) { super(i); maxStackSize = 1; setMaxDamage(50); } public void onUpdate(ItemStack itemstack, World world, …

Software Development java
Member Avatar for hiddepolen
0
135
Member Avatar for Ahmed2

Hello there, submissiontime length finishtime remainingtime 1031 17:11 574.1025391 MB 1050 17:30 1 1326 22:06 536.0175781 MB 1343 22:23 2 2721 45:21:00 608.1279297 MB 2741 45:41:00 3 32 0:32 575.8115234 MB 51 0:51 4 1161 19:21 652.6259766 MB 1182 19:42 5 937 15:37 288.7597656 MB 946 15:46 6 3087 51:27:00 …

Software Development c++ file-system programming-construct
Member Avatar for Ahmed2
0
321
Member Avatar for pro_learner

I have developed a Java GUI App.I want to connect that with mysql.I have already connected a seperate java file with mysql.That java class is also in the same package in my Netbeans project.I want to know is it possible connect DB by using that seperate java class?

Software Development gui java java-netbeans
Member Avatar for pro_learner
0
149
Member Avatar for Srcee

Hi, I am a beginner (not a total beginner though) in C#. I am writing here because I want someone to give me advice on what to program in my free time in order to learn C# more. For example, I know how to zip/unzip files, read/write from xml files, …

Software Development
Member Avatar for berniefitz
0
192
Member Avatar for Arkinder

I am not exactly sure what information is relevant, so my apologies for any useless/redundant information. On my Mac (Snow Leopard 10.6.8) with xCode (gcc) compiled and run through the terminal the following works fine (ignore code and continue reading): [CODE]#include <istream> #include <string> #include <iostream> #include <fstream> enum Year …

Software Development c++ file-system
Member Avatar for Arkinder
0
396
Member Avatar for UNDER-18 FG

Hey guys, I wrote a program and this 2 lines came up with the same error declaration: [ICODE]Scanf("((%d/%d)*%d)", &Mark1, 40, 100; Printf("Average of marks is: %.3f", Avg);[/ICODE] Both these lines came up with these error comments below: Line 1: Function "Scanf" should have a prototype. Line 2: Function "Printf" should …

Software Development c
Member Avatar for UNDER-18 FG
0
155
Member Avatar for Morten Brendefu

Dear enlighted ones. I happen to try to finsh a kind of a function library that my Main program can utilize. As of now, Everything work great... but. I would like to implement some kind of error handling. The way I do this also work, but the error is generated …

Software Development delphi pascal
Member Avatar for Morten Brendefu
0
588
Member Avatar for beforetheyknew

Hi guys, Question 1. I'm a pretty rubbish coder, haven't really done much of it in the couple of years since my degree, at work they've recently expressed an interest in getting me back into it. My problem is that i feel as though I've been taught the syntax (which …

Software Development vb.net
Member Avatar for beforetheyknew
0
106
Member Avatar for MousehDragon

So I have 3 classes, matrix.h, matrix.cc, and shortestPath.cc shortestPath includes the .h file, which includes the matrix.cc file. In shortestPath I've tried to call a Get method I wrote in the matrix.cc file, but I can't figure out how to call the function on the object of that class. …

Software Development c++
Member Avatar for mazzica1
0
301
Member Avatar for Pointblank5600

Hey all. Im just learning VB and i want to make a login screen for my program. there will be two textboxes and a command button. When you click the command button it checks the information with whats in the database and if its correct loads the next form and …

Software Development visual-basic
Member Avatar for Auton710
0
426
Member Avatar for UltimateKnight

Hi guys. What my problem is basically either some typo, or I am doing something extremelly wrong. Can't think of something else. After some time off with C++ I got back with it, creating the simple project to see how well my memory serves me. I am pretty sure that …

Software Development c++
Member Avatar for UltimateKnight
0
101
Member Avatar for Thermalnuke

Im having problem with this code I made for finding the average rain fall. When the program starts. it is suppose to go through each month and you are able to input the rainfall. When the months show up in the CMD it is just a bunch of numbers and …

Software Development c++
Member Avatar for Thermalnuke
0
144
Member Avatar for WhosThatGuy

Hello everyone, Ive been stuck with this little problem for quite some time and if someone could help id be much obliged. I have this code that contains an array with several numbers in put by the user and i don't want any of the numbers in the array to …

Software Development c++
Member Avatar for WhosThatGuy
0
183
Member Avatar for Behseini

Hi Guys, I am trying to display a selected file name by user(using OpenFileDialog class and FileName property) as [CODE] if (dlgOpen.ShowDialog() == DialogResult.OK) { txtFileName.Text = dlgOpen.FileName; } [/CODE] but the problem is this return all path info which I do not need! Can you please let me know …

Software Development
Member Avatar for Behseini
0
120
Member Avatar for lgbagabuyo

// Loel Jolito Niño C. Bagabuyo package marathon; public class Marathon { public static void main(String[] args) { String[] names = { "Jessabel", "Jerome", "Kristine", "Rodel", "Grajen", "Reymart", "Kevin", "Sherwin", "Orniel", "John", "Kirk", "Jovert", "Rhea", "Mariella","Melart", "Michael" }; double[] times = { 341.0, 273.0, 278.0, 329.0, 445.0, 402.0, 388.0, 275.0, …

Software Development java
Member Avatar for lgbagabuyo
0
2K
Member Avatar for Wolxhound90

Hey all, I'm trying to have a ListBox show a list of tables available in a database. This can then be selected to be used later on. My problem is getting the actual table name to show up. I have the connection to the mysql database working properly, but it …

Software Development mysql vb.net
Member Avatar for Wolxhound90
0
365
Member Avatar for Adami

Hello All ! I'm trying to write a Robot Class who have several methods. One of its methods is move() that move the robot the direction his looking at, one step ahead. I'm getting an error on this: [CODE]switch (Direction) {[/CODE] If some one can help me find the mistake, …

Software Development java
Member Avatar for Adami
0
406
Member Avatar for AquaNut

Hi All, Finally getting somewhere with this project and can see the light at the end of a very long tunnel.. I have one more hurdle to overcome so any help in pointing me in the right direction would be greatly appreciated. I have a bound datagrid which I fill …

Member Avatar for AquaNut
0
494
Member Avatar for vlady

hello I have a problem concerning of changing mark. I don´t understand why it doesn´t work...thought the old_mark is type LIST. It works for one student and not for more (for loop) Pls can you help me? Thanks Vlady [CODE]def change_mark(changed_mark): for student in changed_mark: old_mark=changed_mark[student] position=old_mark.index[old_mark] old_mark[position] = raw_input('new_mark') …

Software Development python
Member Avatar for valorien
0
177
Member Avatar for Kitson

Hi again, I have a program which opens a file, searches for a string ("Performance Summary"), misses 3 lines then copies the following lines until there are no more. [CODE]# Extracts data from a files and saves it in a summary file with open("file1.txt") as file: for line in file: …

Software Development python
Member Avatar for TrustyTony
0
174
Member Avatar for mattgwilson

Hi guys, I'm making a program which reads all files in a folder with test data, these files are known as logfiles. With each read logfile, I then need to extract only the lines which have the keyword in them... for example 'PASSED'. Here lies the problem, when you open …

Software Development python
Member Avatar for mattgwilson
0
158
Member Avatar for minimi

The code I have written so far only blinks constantly regardless of which switch is HIGH or LOW.. I can't seem to figure out how to make one switch faster than the others because it would either blink all switches at same rate or remain steady (doesn't blink). Could anyone …

Software Development assembly flash
0
83
Member Avatar for solomon_13000

The code below produced the error: OUT or INOUT argument 3 for routine mysql.getAuthentication is not a variable or NEW pseudo-variable in BEFORE trigger. Did I miss something?. [CODE] using System; using System.Data.Odbc; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using MySql.Data.MySqlClient; public partial class …

Software Development
Member Avatar for thines01
0
2K
Member Avatar for chriswinter

I need to print out the scores and the grades when entered and i do not know how to print the scanner. im sure i am probably missing other things as well. [CODE]import java.util.Scanner; public class Scores { public static void main(String[] args) { int count; int score; int total; …

Software Development java
Member Avatar for chriswinter
0
131
Member Avatar for vishal18

Hello to All, I want to use basic jasper report utility.... But facing error as mentioned below, please help me.....I'm beginer of JReport [CODE] import java.io.File; import java.util.HashMap; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.util.JRLoader; import net.sf.jasperreports.engine.util.JRSaver; import net.sf.jasperreports.engine.xml.*; import net.sf.jasperreports.engine.design.JasperDesign; import net.sf.jasperreports.engine.export.JRPdfExporter; …

Software Development apache java xml
Member Avatar for vishal18
0
10K
Member Avatar for Assassin7893

Guys, I've been stuck on this for a while now. This is actually one of my assignments, and I'm really lost. This is the assignment: ------------------------------------------------------------------------------------------- You manage a .txt file containing the customer ID number and account balance of the members of a bank. Last week, a computing error …

Software Development c++
Member Avatar for Assassin7893
0
865
Member Avatar for iGuardian

[code]/* File: Rainfall.cpp Description: Write a program that reads in the average monthly rainfall for a city for each month of the year and then reads in the actual monthly rainfall for each of the previous 12 months. The program then prints out a nicely formnatted table showing the rainfall …

Software Development c++
Member Avatar for iGuardian
0
1K
Member Avatar for Sphiros O'kelli

Hey!! I'm new to C++, this is the final program of my semester and I am stuck sooooo hard... I have the code laid out and it will compile but my functions wont work like I want them too. here is the code: [CODE] #include<iostream> using namespace std; void getlist(int[], …

Software Development c c# c++
Member Avatar for Sphiros O'kelli
0
344
Member Avatar for abyss776

I've been searching the internet for a way to specify the size of a component within a JPanel, but I haven't been able to find anything that has worked. The best answer I came across was to override the getPreferredSize(), getMaximumSize(), and getMinimumSize() methods of the component, but the component …

Software Development gui java java-swing
Member Avatar for abyss776
0
215
Member Avatar for asif49

I'm attempting to iterate over a list and when a chosen value is found remove it but I can only remove 1 value (the first one found). Why is this and how can it be solved. Here's the code I use [CODE] for (int i = 0; i<list.size(); i++) { …

Software Development java
Member Avatar for asif49
0
678
Member Avatar for asif49

I'm not able to do this after trying several times, maybe someone out there will know a way. I have several lists, each have 5 string elements inside them. I want to loop through the list and put each item on a String (if the item hasn't been added to …

Software Development java
Member Avatar for asif49
-1
102
Member Avatar for Thermalnuke

Alright, I am trying to count words in a file. The user running the program can choose a file that the program can count how many words are in the file. I have it working, but.... it keeps looping the last sentence [CODE]cout<<"There are "<<words<<" words."<<endl;[/CODE] over and over and …

Software Development c++
Member Avatar for Thermalnuke
0
167
Member Avatar for cool_zephyr

hello..i've made a structure given below and the objects of that struct are stored in an arraylist [code] struct node { public int x; public int y; public int cost; public object parent; } [/code] now when i'm adding a new object this type..i want to check if the arraylist …

Software Development
Member Avatar for cool_zephyr
0
6K
Member Avatar for iacosar

I have a problem with this code too. right now I have a segmentation fault but before I couldn't get the correct maxValue. [code] int maxValue(node* head, int max) { node* p; if (head == NULL) { return(1); } else { p = head; max = p-> item; while(p != …

Software Development c linked-list
Member Avatar for iacosar
0
160

The End.