I'm Currently working with a payroll system with daily time record.. I'm having troubles with their time records, what i did is this, i created 6 textboxes on the form the 1st textbox is for the AM IN 2nd is for the Lunch OUT the 3rd Is for the total hours worked for the half day, and the same for the 4th to 6th textboxes. I actually get the difference of 2nd and 1st textboxes and show the result at 3rd textbox and same for the 4th-6th textboxes using this code that I also get in this site [CODE] Dim …

Member Avatar
Member Avatar
+0 forum 6

How do I add the "www." to a website i've set up to have no www. (example: mydomain.com --> www.mydomain.com) Any answers would be greatly appreciated!

Member Avatar
Member Avatar
+0 forum 3

Hello, This is the first time I've attempted creating controls at runtime, and I'm not sure why the following code isn't working; private void Popup_Load(object sender, EventArgs e) { Panel panel2 = new Panel(); panel2.Size = new Size(1280, 720); panel2.Location = new Point(20, 20); panel2.BackColor = Color.Red; this.Size = new Size(1280, 720); this.Controls.Add(panel2); } I'm also trying to draw a string to the screen, but figured that wasn't working for what's probably the same reason as why the above code isn't working. Any help is appreciated, Thanks.

Member Avatar
Member Avatar
+0 forum 10

![7d2f0b828b7075213b3cc4ce79ce21d1](/attachments/large/4/7d2f0b828b7075213b3cc4ce79ce21d1.png "7d2f0b828b7075213b3cc4ce79ce21d1") i have 2 database listview1(from tbl_storage) listview2(fromsales) so i want my listview items and subitems to be increment or be loop correct me if im wrong with that. sellingprice and Qty.(Quantity) ex. itemno | name | qty| price | total | 1 | a | 1 | 100 | 100 | 1 | a | 1 | 100 | 100 | it should be looking like this 1 | a | 2 | 100 | 200 | i want to loop it so when i add the same item it wont duplicate in listview2 here's my whole code: …

Member Avatar
Member Avatar
+0 forum 2

Hey Fellas, I created 10 JTextFields using and ArrayLists: `ArrayList<JTextField> textFArray = new ArrayList<>();` textFArray.add(new JTextField()); gbc.gridx = 1; for (int i = 0; i < 10; i++) { gbc.gridy++; add(textFArray.get(i), gbc); textFArray.add(new JTextField(i)); } What I need to do: I need to get the values of what ever the user puts into the JTextField(s) and total the inputs and assign them to a variable. This is what I have so far: double totalTemp; for(JTextField temps: textFArray){ //System.out.println(temps.getText()); totalTemp = Integer.parseInt(temps.getText()); } I know the code snippet above doesnt work properly. If you uncomment the the one line, it can …

Member Avatar
Member Avatar
+0 forum 1

Im trying to create a booking system for a cinema, What i want to do is : open my csv with available seats, print it then ask the user what seat it wants, then the csv need to update taking away the seat, and then that seat gets added to the customers csv. Any code, any ideas would be great THANKYOU

Member Avatar
Member Avatar
+0 forum 9

Hello, I am stuck with this problem.... I have few folders that contains a filename as **registration.txt** --- note the folder names are different since as and when a new user will register a folder gets created with its name and then the text file with the details of the user.... I have to read the user id from the text files to the Listbox and then check if any user id has been repeated in the list box....(stuck here) I have able to read the data but just not able to perform the check on the id... Please someone …

Member Avatar
Member Avatar
+0 forum 1

I want to create binary tree. With this program I wrote I have some problems. It seems the element I added to the tree is always added to the root place! Adding never happens to the left or the right subtree. This thing is prooved by result I always get when I add a new element to the tree -it's always just printing message "We are adding to the root or it's a new leaf!". Because this part of the program is doing by a **recursive procedure push_in_tree** I gues there is a problem, but I can't find it.I'm using …

Member Avatar
Member Avatar
+0 forum 3

Imports System.Data Imports System.Data.SqlClient Partial Class test Inherits System.Web.UI.Page Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim txtName As String = TextName.Text Dim txtcomment As String = TextComment.Text Dim txtemail As String = TextEmail.Text Dim con As SqlConnection Dim cmd As SqlCommand con.ConnectionString = "SqlData Source=(LocalDB)\v11.0;AttachDbFilename=App_Data\library.mdf; Integrated Security=True;Connect Timeout=30" cmd.Connection = con con.Open() cmd.CommandText = "INSERT INTO table([Name], [Comment], [emailaddress]) VALUES([txtname], [txtcomment], [txtemail])" cmd.ExecuteNonQuery() con.Close() End Sub End Class i am getting 'nullreferenceexecption was unhandled by user code' error in this code

Member Avatar
Member Avatar
+0 forum 8

Hello, I want to submit multiple records into a mysql database, and I have hit a snag. I am developing a web application that displays student records, and upon displaying student records per class, I want to be able to add marks for beginning of term, mid term and end of term. The problem is that, since I am not sure of how many rows of records the sql statement will return, I can't declare different variables for each student mark. I tried using the foreach loop but it kept showing me an error in declaration of variables. The loop …

Member Avatar
Member Avatar
+0 forum 13

Hey below is a table i created ProductId ----- Qty ------- 1 ----- 2 ------- 2 ----- 2 ------- 1 ----- 2 ------- 1 ----- 2 ------- 2 ----- 2 ------- 1 ----- 2 ------- Wat i am trying to do is get my sql statement select and display my result like ProductId ----- Qty ------- 1 ----- 8 ------- 2 ----- 4 ------- Below is my code > Quoted Text Here SELECT Detail.ProductID , Sum (Distinct Detail.Qty)as Qty , Head.SalesDate FROM Detail INNER JOIN Head ON Detail.HeadID = Head.HeadID Where datepart(month,getdate()) = MONTH ( SalesDate ) Group By Detail.ProductID, …

Member Avatar
Member Avatar
+0 forum 1

Hello there i would like someone to have a peek at this code and does it solve the question correctly ?? Are there any mistakes or any improvements i could add ?? Also If any one could tell me how to save the data entered by person into one file(XML)so it can be retrieved any time later would appreciate it ;) Thank you Question 2: Write a script to allow a user to add property data into a property table ( call it addproperty.php ). The table should initially have 4 columns for the property data (postcode, price, imagefile, visits). …

Member Avatar
Member Avatar
+0 forum 1

i need help in adding image in my current payroll project i need a more simple way or easier to understand codes in adding image in my database tnx in advance

Member Avatar
Member Avatar
+0 forum 5

I have a problem when adding 2 numbers in assembly because we are using hex. When add 4+5 (34h + 35h) the output is 9 but if I add 5+5 (35h + 35h) the output displays colon(:) or 3ah instead of 10. Here's the sample image when i generate the code. [IMG]http://i42.tinypic.com/35hpkhs.jpg[/IMG] Here's my code. Run>debug 5+4 = 9 [CODE]a100 ;assemble mov ah,02 mov ch,35 ;5 mov cl,35 add cl,ch ;5+5 sub cl,30 ;-30 mov dl,cl int 21 int 20 g[/CODE] Adding 5 + 5 = : [CODE]-a100 mov ah,02 mov ch,34 ;4 mov cl,35 add cl,ch sub cl,30 mov …

Member Avatar
Member Avatar
+0 forum 1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <SCRIPT language="javascript"> function addRow(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); var colCount =table.rows[0].cells.length; for(var i=0; i<colCount; i++) { var newcell = row.insertCell(i); newcell.innerHTML = table.rows[0].cells.innerHTML ; //alert(newcell.childNodes); switch(newcell.childNodes[0].type) { case "text": newcell.childNodes[0].value = ""; break; case "checkbox": newcell.childNodes[0].checked = false; break; } } if(table.rows.length>=10){ document.getElementById('addrw1').style.visibility='hidden'; } } function deleteRow(tableID) { try { var table = document.getElementById(tableID); var rowCount = table.rows.length; for(var i=0; i<rowCount; i++) { var row = table.rows; var chkbox = row.cells[0].childNodes[0]; if(null != …

Member Avatar
Member Avatar
+0 forum 1

i have this code for adding a node after the previous node, but valgrind is saying that there is a memory leak of 16 bytes, can someone please help me identify where the leak is? i think i didnt assign a null pointer somewhere but im not sure exactly where [ICODE]struct Node *addAfter(struct List *list, struct Node *prevNode, void *data) { struct Node *temp; temp = (struct Node *)malloc(sizeof(struct Node)); if (temp == NULL ) { perror("malloc returned NULL"); return NULL; }else { temp->data = data; if(prevNode == NULL) { prevNode = addFront(list, temp->data); prevNode->next = NULL; }else { while(prevNode->next …

Member Avatar
+0 forum 0

my question is how can I output the data on the input box "Order total is" I have try everything but I just stuck on this part, I'm very new on this, I did the function showSum so I can show the sum of the total checkboxes. thank you for any suggestions. [code=JavaScript] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <script language="javascript"> <!-- function showSum(){ var checkboxgroup = document.form1.order var sum = 0 for (var i=0; i<checkboxgroup.length; i++) { if (checkboxgroup[i].checked) sum += parseInt(checkboxgroup[i].value) } document.form1.txtOutput.value = "Order total: $ " …

Member Avatar
+0 forum 0

The End.