132,726 Archived Topics
Remove Filter ![]() | |
Hello guys, i created a method that would set the value of my string so that when i pass it to another class, it would still contain the needed value: This is the first class: public Student getSelectedStudent(){ Student selectedStudent = new Student(); DefaultTableModel dtm = (DefaultTableModel) tblListOfStudents.getModel(); String studentNum … Software Development java | |
Dear, I'm trying write a simple C program that h two input files. Both are large files. First file has one column and second file has two columns. Just compare the first colums of both files and print the whole line of second file that matches first one. File2.txt 123456 … Software Development c | |
Hello, I am unable to display the correct format. I have tried everything this is how I need the code to display: Portfolio #00001, ASD = 42.50, DFAS = 45.00, CAC = 22.20, BDM = 52.50 Portfolio #00002, ASD = 42.50, DFAS = 45.00, CAC = 22.20, BDM = 52.50 … | |
Cant figure out whats wrong with this function but i think its probably a data type error. Please help! void displayName(){ char name[30]; int number, x; printf("So..what is your name?\n"); scanf_s("%s",&name); printf("Nice to meet you %s, how many times would you like to be cloned?\n",name); scanf_s("%i", &number); for(x=0; x<number; x++){ … Software Development c | |
Hi, I'm trying to build a prototype or model of a program and that program requires the ability to store and retrieve data and operate locally (no network connection is needed at this time). I've discovered the javax.sql package but that seems to only connect to a database. I need … Software Development java mac-software os-x unix | |
Hello, I want to build a POS System. I've already created one in PHP, but I want to create a local one that can be installed on machines and not accessed online or using web server (Locahost). Since I have no idea on the requirements of a system installed on … Software Development user-interface web-server | |
I am having an interesting problem in scanf. It inputs the integers successfully but overlooks the character. In debugging I saw a strange value placed in the character variable. Kindly help me-- #include <stdio.h> int main() { int a,b; char op; printf("Welcome To Command Based Calculator"); // printf("\n"); printf("Now enter … Software Development c | |
I'm trying to get appletviewer to work with a very simple Hello program. Here's my code for test.java import java.applet.*; import java.awt.*; public class test extends Applet { public void paint(Graphics g) { g.drawString("Hello",123,125); } } Then I wrote the following html. Here's my code for test.html <applet code = … Software Development java | |
i have a ComboBox named 'ComboBox_status' which have default values 'In Operation' and 'Disposed' i want the background color to change to red when 'Disposed' is selected and green when 'In Operation' is selected. this is the code i tried but it changes the background to red for both of … Software Development java | |
![]() | I'm new to python so any help would be appreciated, here is a code i've been working on for calculating gpa, I have to calculate gpa of an inputed number of courses by a user (could be 2-infinte number of courses); btw this is not the whole function but only … Software Development python |
Hi guy, I need those of you who has below os to help me test run [this new software](https://sourceforge.net/projects/fastfilemanager/). windows os (64 bit/32 bit) windows 7/xp/2000/98 etc linux (64 bit/ 32 bit) It is really simple to install the above software, just download the zip file, unzip it, click on … | |
Hi, I am new this forum and i am one of person interest i programming language. I am trying one small application to create. But i don't have proper guidance. I request help here. Just a asset management process. There are 2 tables [U]Category[/U] -> Catid, Catname [U]SubCategory[/U] -> Catid, … Software Development vb.net | |
This is my assaigment: Write a program that prompts the user for a beginning bank balance and an interest rate. The program will display the value of the account at the end of each year for 10 years. The output should show the value of the account for three different … Software Development java | |
Hi everyone.. How to make the checkbox stays checked when double click??? When i click the checkbox it will check, and when i double click it, it will still be check... how should i do that guys???... Cheers:-)...USC CAS CHEERDANCE TEAM Software Development vb.net | |
I have an assignment that is very similar to a past assignment. I have to create a for loop to find gpa. The previous assignment was to use a while loop: stop1 = int(input('How many GPAs do want to calculate? ')) totalgp = 0 totalgp1 = 0 while stop1 > … Software Development python | |
Good day to all I was wondering if it is possible to show all data in a datagridview that doesn't match from 2 tables? Like Inner Join if you have at least 1 match data from the other table it will display it. What i want is to display those … Software Development vb.net | |
Dim table As DataTable = New DataTable table.Columns.Clear() Chart1.DataSource = Nothing Chart1.Series.Clear() table.Columns.Add("Color", GetType(System.String)) table.Columns.Add("Data", GetType(System.Int32)) table.Rows.Add("Green", Integer.Parse(txtgreen.Text)) table.Rows.Add("Red", Integer.Parse(txtred.Text)) table.Rows.Add("Blue", Integer.Parse(txtblue.Text)) table.Rows.Add("Yellow", Integer.Parse(txtyellow.Text)) table.Rows.Add("Brown", Integer.Parse(txtnothing.Text)) Dim IEtable = CType(table, System.ComponentModel.IListSource).GetList Chart1.DataBindTable(IEtable, "Color") Chart1.DataBindTable(IEtable, "Data") Software Development vb.net | |
I am working on a program for work and trying to make a massage bar with text can anyone help? I just want the text to move across the screen. from tkinter import * Gui = Tk() Gui.geometry('8000x100+1+600') Gui.title('ALARTS') Gui.config (bg = 'blue') massage = Label(Gui, text = 'this is … | |
I've been working at this code for probably 7 hours since last night. After hours of troubleshooting I solved most issues with my code but now I have a strange problem that I cannot figure out how to fix. One of my function is to generate a random hex string … Software Development vb.net | |
Hi I have double values like this, double value1 = 100.0 double value2 = 100.23 I need to convert like this, value1 = 100 value2 = 100.23 Kindly give some sugesstions to convert like this. Software Development java | |
![]() | I added a ListView object, added few Columns, but the problem is there that I can't add no text to the other columns by making new Items Any help? |
Hello , I have a question about , if there is possibility , to prepare event , after an insertion in database is done , and how ? , using MySQLdb for python and MySQL . Software Development python | |
hi i want to show entire column data from sql and show in a single textbox with "," Software Development | |
Hello , I am trying to modify a backup script , using the zipfile module , it creates the folder of the day , and inside it the zip file that contains the two source folders , but not the underfolders and the files inside them . here is all … Software Development python | |
Okay so I have fstreams that I swap between output and input. Is there anyway I can tell which openmode the fstream is in? Software Development c++ | |
I'am trying to make a color mix program and is giving me this :Error Invalid Use Of Property. I guess is because i have to put some values for colors, but i don't know how. This is the code, hope somebody help me: Private Sub Command1_Click() Picture1.BackColor RGB(Text1, Text2, Text3) … Software Development visual-basic | |
I want to make a Cocoa applictation using all code in Xcode, not using the Interface Builder. I have searched a lot on this and have not found anything since most people want to use the Interface Builder. Please don't say anything like "Don't waist your time on it", "They … Software Development ide objective-c os-x | |
![]() | I would like to make a Export / Import buttons that will save/open files that contain listView data (ListView Items) Can someone tell me is there a way to do this? ![]() |
Hi all, I have already written a code to search for staff records from my staff database and it's working fine, but the problem is, if someone enters a wrong a wrong staff id or just any number or alphabets, it still displays the "Found Record" message, instead of "No … Software Development microsoft-access seo vb.net | |
The maximum size of my array is 20 but I want the array to display only items that have been entered. I dont want the zeros to be considered in the array in all my operations like sorting and printing etc. Can anyone help. #include<iostream> #include<iomanip> using namespace std; void … Software Development c++ | |
I have completed this project for my Computer Science I class. I received full credit because the program is functional with no issues at a glance. However, upon testing the program again (after it was graded), I found that under specific circumstances an infinite loop occurs. I couldn't go on … Software Development c++ | |
actually i have a very large code in excel vba. and it is really working very well. but when i m trying to use this code to vb.net then a part of this code is not working. i.e. Dim fnum As Variant Dim FileName As Variant FileName = Application.GetSaveAsFilename(InitialFileName:="Voucher", FileFilter:="Text … Software Development vb.net | |
I have running totals of int minutes and int seconds and I can display them as mmm:sss, but I need to convert them into hh:mm:ss. Any ideas? Thanks in advance for your help. Software Development c++ | |
import javax.swing.*; import java.awt.*; import java.awt.event.*; public class PaymentCalculator extends JFrame{ private JPanel panelTitle,panelInput,panelButtons; private JLabel lbltuition, lblmisc, lblscholarship, lblfee; private JTextField txttuition, txtmisc; private JComboBox cbscholarship; private JRadioButton optfull, opttuition,optOther; private ButtonGroup btnpayment; private JCheckBox chkfees1, chkfees2, chkfees3; private JButton btncompute, btnclear; private JList listbuy; private DefaultListModel listmodel; private … Software Development java java-swing | |
hi :) is there anyone who knows how to add a datepicker when you click the textbox? or pop up a datepicker when you click the textbox and when you click a date in datepicker it will pass the selected date to the textbox??? pls. thanks in advance :) Software Development | |
How do I make a program to convert Octadecimal value to Decimal, Hexadecimal to Binary and Hexadecimal to Octadecimal. Please help meee! T.T Software Development c | |
here is the question: Write a program that accepts a positive integer. Use a function to calculate the factorial of that number. my codes: #include <stdio.h> #include <stdlib.h> int fun(int z); int main() { int n,x,fact; printf("enter a number: "); scanf("%d",&n); fact=fun(n); printf("factorial of %d is %ld\n" ,n,fact); system("pause"); return(0); … Software Development c | |
![]() | hello programming gurus Am a newbie in visual basics,need some ideas on how to go about my project stated above. it should be able to: 1) allow me to see random generated line and shape patterns 2) choose a list of numbers the ratio of the width to the height … Software Development visual-basic ![]() |
I am opening mathtype.exe from richtextbox and type some mathtype equation editor after closing mathtype editor the data which i type must be displayed in richtextbox. I am tried this using sendkeys.send but it seems to be not working properly. Suppose mathtype equation in richtextbox you can open it by … Software Development vb.net | |
Hello ,,, Please I need Your Help as soon As Possible.. I have an array of integers and i need to convert it to string ... PlZ Help me as soon as Possible ... Software Development c++ | |
I need a script that connects to a device on my network and export a list of data... #!/usr/local/bin/expect -f spawn telnet hostname expect -exact "Username:" send -- "username\r" expect -exact "Password:" send -- "password\r" expect "#" send -- "command\r" interact expect "#" send -- "logout\r"` I get some desired … Software Development shell-scripting | |
string s = "select * from StudentDetails"; SqlDataAdapter da = new SqlDataAdapter(s, con); DataSet ds = new DataSet(); DataRow therow; try { con.Open(); da.Fill(ds, "StudentDetails"); TextBox1.Text = "" string s = "select * from StudentDetails"; SqlDataAdapter da = new SqlDataAdapter(s, con); DataSet ds = new DataSet(); DataRow therow; try { … | |
Hi, One of the users of my application is complaining that he can't open the application. He gave me the debug output of the crashed application...unfortunately I'm not an expert and have difficulties to manage it...would you please give me some help and help me understand why the application is … Software Development assembly open-source vb.net | |
Hi friends, thanks all for your contributions here at DaniWeb Community. I want to ask one thing; I have a table where I keep values for students marks (StudentID,Marks). Let's say there are 50 students. I want to be able to display on the form the class rank for each … | |
How to check if start date and end date overlaps when adding or updating in gridview? is there anyone who knows how to check if dates are overlapping? this is my gridview: | ID | cost | start date | end date | status | --------------------------------------------- | 1 | 66.00| … Software Development | |
Please help me to Checking for Duplicate Record of SQL Database before Inserting & Updating this my code please may anyone check my code If class1.sqlcon.state = connectionstate.open then class1.sqlcon.close() End If class1.sqlcon.open() dim cmd as new sqlcommand dim Qresault as integer cmd = new sqlcommand (" SELECT COUNT (*) … | |
How can I convert a string into an integer? I tried this: totalMins += atoi(MovieRecord->getMinutes()); Which I think only works for C-strings, and I tried this: totalMins += static_cast<int>(MovieRecord->getMinutes()); which I think only works for converting an int to a double or something similar. Software Development c++ |
The End.