132,726 Archived Topics
Remove Filter ![]() | |
Hi, this is my basic program for an assignment but I can't figure out why I am not getting the desired output for the grade printed and why there is a repetition of the Enter Student Name at the end before the program loops again. I have also included a … Software Development java | |
Can anyone explain how to remove an item from a listvuew. Ive tried: ListView6.SelectedItems.Remove() However that doesn't work, it has the little blue line underneath it. Does anyone else have any ideas? Thanks | |
Hi Guys, **<-- Newbie Here!** I seem to have an issue with an INSERT INTO statement when trying to add some textbox data into a DataSet and then update the backend table called 'cashOrders' in a Access Databse. The Following code is being run from the 'Save Button' private void … Software Development dataset microsoft-access | |
I noticed that when equals() is used to compare between two String objects it works fine. But when I compare two StringBuffer objects or two StringBuilder objects or mix of String and Builder and Buffer, equals() doesn't work even though I give same string value to the two objects being … | |
I have an Access database that I upsized with the wizard wishing to continue using Access for the Front End. I want to be able to connect to the SQL database without having each computer setup for the DSN. I added this to the autoexec macro. Function autoexec() On Error … Software Development visual-basic | |
Ok so here is what I have and I am stuck. It is not recognizing whether a number is even or odd. So where do I need to put the remainder operator so that it will recognize if a number is even or odd? import javax.swing.JOptionPane; // program uses JOptionPane … Software Development display java java-swing | |
I am very new to C and I am hoping for some pointers. I am attempting to take an input of 7 integers of an array and search through them to see if any number appears only once. Here is what I have so far #include stdio.h #define ARRSIZE 7 … | |
Hello, I need to figure out how to dynamically take a HTML view and convert to a image (jpeg or png). Then I want to pass that image to another application. Any suggestions? Thanks | |
Dear people of DaniWeb! I am in trouble. I can't figure this out I have a text file Five Finger Death Punch – 'Under and Over It':30 Staind – 'Not Again':23 Breaking Benjamin – 'Blow Me Away':56 Theory of a Deadman – 'Lowlife':33 Anthrax – 'The Devil You Know':120 Like … Software Development | |
#include "splitzer.h" using namespace std; // find all the lines that refer to each word in the input map<string, vector<int> > xref(istream& in, vector<string> find_words(const string&) = split) { funtion body; } error: line 3, expected initializer before using error: line 6, expected constructor, destructor, or type conversion before "<" … Software Development c++ | |
import java.util.*; class SampleA { } class SampleB extends SampleA{ } class SampleC extends SampleA{ } class VectorDemo { public static void main(String r[]) { Vector<SampleA> v = new Vector<SampleA>(); v.add(new SampleB()); v.add(new SampleC()); SampleC rect = v.get(2); } } The output says "Incompatible types. Found SampleA, required SampleC. SampleC … | |
public static void total() { Scanner s = new Scanner("five six seven eight"); int num= 0; for(int i=0; i < s.length; i++) { if(s.charAt(i).equals("a") || s.charAt(i).equals("b") num++; } System.out.print(num); } public static void main(String[] args) { total(); } > What am I doing wrong ? Software Development java | |
Hello i need your help in calculating this. i have 5 textbox with text: N203.00, N40.00, N500.00 ..... how do i add this textbox text and display result on a label. Thanks TiM Software Development vb.net | |
Hey guys I'm running into an error. I've got the tree and the base working. But now that I'm to the trunk it'll only center the first one and the rest are to the left. any suggestions? #include <iostream> using namespace std; double height; int main() { cout <<"This program … Software Development c++ | |
with questions at the end. coding exercises and answers. for extreme beginners. Software Development c++ | |
Hey There, I'm a beginner when it comes to VB.net. I can do all the basic stuff, but I'm having issues with connecting to a database I've created. Ultimately, I need to feed data from a few text boxes to one table within the database, but I can't even get … Software Development microsoft-access open-source vb.net | |
Hi All, I have a Windows Form with a tab control on which was working fine and had 7 tabs. I added a picture box and this has some vb powerpack rectangles on top which werent displaying, were falling behind picture box. I sent the picture box to the back … Software Development vb.net | |
I've been trying to do this for some time. I can do it with a vector but with a const void*, it crashes badly! My bad code: Bitmaps::Bitmaps(const void* Pointer, int Width, int Height, uint32_t BitsPerPixel) { Pixels.clear(); memset(&Info, 0, sizeof(BITMAPINFO)); width = Width; height = Height; size = ((width … Software Development c++ | |
Hello, I have 3 combobox and I want to find them in my table "class" and retrieve the ID. I am currently having trouble with the following code: public void retrieveClass(String time,String stage, String teacher){ Connection con = null; ResultSet rs = null; java.sql.PreparedStatement st = null; Properties conProps = … Software Development java | |
I am having a problem with arrays.... for this assignment i can not use Arraylist... I only be able to use array of string. here is my problem. I am asking the user to enter words with in 1 minute ... when the time is up ..i need to print … Software Development java | |
I am needing some help with Visual C# 2010 Comprehensive An Introduction to Object Oriented Programing by Joyce Farwell, Chappter 11 Question 3. ArgumentException is an existing class that derives from Exception; you use it when one or more of a method's arguments do not fall within an expected range. … Software Development | |
Hi there i'm thinking of starting a database project but i want the DB to be located in a PC works as a server and distribute this DB over an internal network, so many users (clients) can access the DB from their own PC. Any good tutorial or example? Software Development java | |
#include<iostream.h> class ADTqueue { private: int queue[10]; int head,tail; public: ADTqueue() { tail = -1; head = 0; } int empty() { if(head == tail+1) return (1); else return (0); } int full() { if(tail == 9) return (1); else return (0); } void append(int num) { if (!full()) { … | |
I am new to programming.I have written this code which arranges the words in reverse order i.e., if input is "I Am Sad" output should be "Sad Am I" but am not able to get where i am going wrong so plz help me. here is the code #include<stdio.h> #include<string.h> … Software Development c | |
To print on the same line Python2 uses print item, Python3 uses print(item, end=' ') Is there a way to make it work in both versions? Software Development python | |
Hi Guys... I seem to be having an issue when trying to create a new row in a Dataset. Below is the following Connection Details to the Access DB. private void radioButton3_CheckedChanged(object sender, EventArgs e) { cashCustom.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Orders.mdb"; cashCustomerDS = new DataSet(); cashcTable = new DataTable(); cashCustomerDS.Tables.Add(cashcTable); cashCustom.Open(); … Software Development dataset linked-list microsoft-access open-source | |
I'm a beginner so bear with me. I have a string and in it there is a character I want to remove. What is the best way to remove it? The shit I've found on the internet, it's making my head explode. I found this: str.erase(std::remove(str.begin(), str.end()), str.end()); Why is … Software Development c++ | |
have a Problem in C# windows program that is I can't work with 2 database those are simple database in tables and Data. in this Project I want to open Access DataBase and Create New Access DataBase with another Name But with Same Tables And Columns And Rows and fill … Software Development microsoft-access open-source | |
import java.util.Scanner; public class LoopPatterns { /** * @param args */ public static void main(String[] args) { public static double Largest { Scanner s = new Scanner(System.in); int num, largest = 0; for ( int i = 1; i <= 10 ;i ++) { System.out.print("Enter a number : "); num … Software Development java | |
define a class containing overloaded method which calculate are of square circle and rectangle depending on the type and numbers of arguments passed. If the number of argument passed to the are is one ,then the area of the cicle and suare should be displayed,however if it is 2 then … Software Development java | |
i created a game program using vb6 and i finish it already my problem is how can i make this program ready to install in or become installer. Software Development visual-basic | |
import java.util.Scanner; public class LoopPatterns { /** * @param args */ public static double Largest (){ Scanner s = new Scanner(System.in); int num, largest = 0; for ( int i = 1; i <= 10 ;i ++) { System.out.print("Enter a number : "); num = s.nextInt(); if ( num > … Software Development java | |
I have made one program that work on hash map. I want to do one thing. All the tuples(row) with defined quasi identifier location having value >=k will be moved from map m1 to asMap and it also removed from m1. So at last i am printinf the output of … Software Development java | |
Hi, Tq for ur support before.... I got some stuck here regarding how to make my text file write a new line for each input from textbox.. E.g :- I have a one textbox1 , when i insert any value in textbox it will save into my textfile. .. but … Software Development vb.net | |
Good Afternoon, I'm fairly new to C++ programming, right now I'm having difficulties completing an assignment that consist of a student database. I really appreciated if someone would help me or give me some guidelines to complete the assignment. The assignment consists of that the database only generates one text … Software Development c++ database-design file-stream | |
please help with this program. I need to calculate the highestSalesand the averageSales using float funtions and displayOutput using void, I wrote the program but I can not get the output I get a lot of confusion. please help. when I'm trying to compile i get the error cpp:5 too … | |
Can anyone explain me the below and please tell me why it is not accepting large number of strings. sed ':a;s/(([^,|]+)[|,].*)\2/\1/;ta;y/,/|/;s/||/|/g' file_nm Software Development shell-scripting | |
Hi there guys I am encountering another problem with my code, it says Error: 'Francis.Form1.Dispose(bool)': no suitable method found to override. I have uploaded the screenshot of my problem, please help me guys I don't understand why I am encountering such problems and a fix will be very helpful. Thanks … | |
I am 2/3 thirds of sams teach yourself java in 21 days and I would like to know what to do to get proficient with programming. I heard I should look at source code, if so where can I find some. What kind of projects should I do. Should I … Software Development java open-source | |
i use this Update code to update my record but i get this error msg : Dim con As New SqlConnection con.ConnectionString = My.Settings.TenderingSysConnectionString con.Open() Dim cmd As SqlCommand = con.CreateCommand() cmd.CommandType = CommandType.Text cmd.CommandText = "update BOQDetailEntry set BOQDetailEntry_ID=@BOQDetailEntry_ID, ProjectTenderingNO=@ProjectTenderingNO,BOQSection=@BOQSection,Part=@Part,BOQITEM=@BOQITEM,BOQItemNo=@BOQItemNo,Description=@Description,Unit=@Unit,BOQTY=@BOQTY,ReferenceDrawing=@ReferenceDrawing,ReferenceSpecifications=@ReferenceSpecifications where BOQDetailEntry_ID=@BOQDetailEntry_ID" ' BOQDetailEntry_ID=@BOQDetailEntry_ID cmd.Parameters.Add("@ProjectTenderingNO", SqlDbType.NVarChar, 50) cmd.Parameters.Add("@BOQSection", SqlDbType.NVarChar, … Software Development vb.net | |
Hi guys, Just want to ask if there's a way to search in a date/time field in access and display only the month that match the string from a textbox. The query below. sql = "SELECT * FROM tblName WHERE fldDate LIKE '%" & textbox1.text & "%'" So if I … Software Development vb.net | |
A Example for OLE DB I Compiled. Put back together for fun maybe. # Someone convert this to ASP.Net plz with a splash screen. # # Required Materials # 1. a vb.net compiler(visual studio vb.net express perhaps?) 2. Libzplay dll(your search engine will help) Imports System.Data Imports ESO.libZPlay Imports System.Data.OleDb … Software Development microsoft microsoft-access vb.net | |
String s1 = "+1-2+3-4+5+6-7"; String s2 = "1-2+3-4+5+6-7"; I want to find the value of sum of each of those string in integer ? there can be only addition or subtraction Software Development java | |
I made a battleship game and its gone well except for checking if the ship is sunk... Any help? Here's what I have so far, thanks in advance. public class BattleShip { private static final int dimensions = 10; private String[][] board = new String[dimensions][dimensions]; private String[][] piecesBoard = new … Software Development java | |
http://www.daniweb.com/software-development/cpp/threads/267174/vigenere-cipher Read that. Was the full, complete code posted? If so, can I get a link or code? I want to refer to this when I get stuck with my project. Software Development c++ | |
Hey guys I'm new to programing and I made a program to solve quadratic formula but it doesn't work with imaginary numbers when the number is negative I get something like this -1.#IND. What can I add or adjust in my code to help get the program to show imaginary … Software Development c++ | |
**Dudearoo** *Useing Code::Blocks* Hey Guys! ive got a question, How can you find a string and then print after it?? ive searched google high and low and came out with nothing. What i want to do is to read a string(StringONE) and see if an other string(StringTWO) is in that … | |
I have the user input a sentence (example " Hello this is some jello "). I already have that complete by having a method to do this. What the method does is take a user input (.nextLine) then stores the words of the sentence into String[] words and I use … Software Development java | |
Hi Everyone, I have this problem whit my code : ExecuteReader: Connection Property has not been initialized and i don't know why This is my code: Dim maximo As Integer Try oConn = New OleDb.OleDbConnection(con) oConn.Open() ' abrimos la base de datos oComn = New OleDb.OleDbCommand("Select ID_ISSUE From ISSUE") oRsRead … Software Development vb.net |
The End.