VS 2008 Can't Get Program To Multiply The Timespan By The Pay-rate

Apr 2, 2009

[code]what I have done (with some help) is find a timespan. the timespan (between when an employee logged in-out) is, for example, 1:15 (1 hour, 15 mins).the pay rate is 6.00 (representing $6.00)I can't get the program to multiply the timespan by the payrate..Error: 'Conversion from string "02:00:00" to type 'Double' is not valid.'

View 5 Replies


ADVERTISEMENT

DB/Reporting :: Calculate Rate For 3 Days In Different Rate Like Public Holiday,weekend And Normal For 1 Room?

Aug 19, 2009

how to calculate rate for 3 days in different rate like public holiday,weekend and normal for 1 room

View 2 Replies

TimeSpan Subtract Method Return Negative TImeSpan?

Dec 9, 2009

These two TimeSpan are stored in the Database with 24hr format. No date, only TimeSpan.

Dim r As TimeSpan
Dim tsStart As TimeSpan
Dim tsEnd As TimeSpan

[Code]...

Is there any TimeSpan method to get this right?

View 3 Replies

Call It Frame Rate Or Refresh Rate Of A Process?

Mar 25, 2012

How can I speed up a process? I see I should use timegettime, gettickcount, and queryperformance counter, but I have no clue where to start.

I guess you can call it Frame Rate or Refresh Rate of a process?

View 1 Replies

Payroll Calculator : Indicate If The Tax Is At Single Rate (18%) Or The Family Rate Of (15%)?

May 7, 2009

i am trying to indicate if the tax is at single rate (18%) or the family rate of (15%)This is what i got so far i could do the rest but just cant do the Mstatus part.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Name As String 'Name of employee
Dim hrWage As Double 'Hourly wage
Dim hrsWorked As Double'Hours worked this week

[code]....

View 1 Replies

Rate The Difficulty Of Making Program?

Mar 3, 2010

I just started with VB.NET using Murach VB.net 2008 book and i want to make this program for my work, please tell me what knowledge needed to make this program beside VB.NET: want to make a program for my supervisor which Lists the name of every employee in our division. the program should be accessed by any computer in our division using LAN. each employee will have user and pass to enter this program they only can view their data with charts showing their attendance, productivity , etc, supervisor will have master account where can edit the info.the supervisor can send private message like e-mail to each employee. all the info should be saved in database so it can be used to compare the employee activity for each year.

View 3 Replies

.net - Do A Foreach On A TimeSpan By Timespan Type

Apr 26, 2010

I have a requirement that regardless of the start and dates that I need to loop through that timespan and calculate figures at the month level. I cannot seem to figure it out, and maybe it is not possible, but I would like to do something like:

FOREACH Month As TimeSpan in ContractRange.Months
Do Calculations (Month.Start, Month.End)
NEXT

Is this possible or do I need to calculate the number of months, and just iterate through the amount of months and calculate the start/end of that month based on my index?

View 2 Replies

A Program That Uses Constants To Establish The Base Pay, The Quota, And The Commission Rate?

May 6, 2009

I need to write a program that uses constants to establish the base pay, the quota, and the commission rate. The Pay menu item calculates and displays the commission and the total pay for that person. However, if there is no commission, do not display the commission amount (do not display a zero-commission amount).

Write a function procedure to calculate the commission. The function must compare sales to the quota. when the sales are equal to or greater than the quota, calculate the commission by multiplying sales by the commission rate. Format the dollar amounts to two decimal places; do not display a dollar sign.

The summary menu item displays a message box that holds total sales, total commission, and total pay for all salesperson. Display the number with two decimal places and dollar signs.
the Clear menu item clears the name, sales, and pay for the current employee and then resets the focus.

The Color and Font menu items should change the color and font of the information displayed in the total pay text box. Use a message box to display the program name and your name as programmer for the about option on the Help menu.
[code...]

So the issue is when I push calculate and summary, the total sales comes up, but not the total commission or total pay. Also, the color only changes to blue and that is it. I am not sure how to get the color or the font menu choices to be able to be choosen by the user. Is that possibile?

[code...]

View 1 Replies

VB Coding - Program That Calculates Minutes Worked Times Pay Rate Equals Amount Of Weekly Pay

Mar 16, 2011

I am trying to build a program that calculates the minutes worked times pay rate equals amount of weekly pay this is what I got but it doesn't calculate

CODE:

View 3 Replies

VS 2008 How To Use TimeSpan

Jul 11, 2009

I need to get the deff. of 2 times, Its not working for me. Here's my code

[Code]...

View 4 Replies

VS 2008 - Multiply 6 Groups Of Numbers?

Apr 12, 2010

i have 6 groups of 5 textboxes each one with numbers 12345 i want to know how i can multiply them and how to see the 15625 numbers

View 31 Replies

VS 2008 Get A Button To Divide And Multiply?

Sep 15, 2009

How would I get a button to divide and multiply?

View 7 Replies

VS 2008 Change Frame Rate In Visual Basic 2008 Media Player?

Feb 26, 2010

How to change the frame rate in Visual Basic 2008 Media Player? I have error: System.NullReferenceException was unhandled Message: Object reference not set to an instance of an object. IS there any way to fix this? Here's My Code

[Code]...

View 2 Replies

VS 2008 Formatting A TimeSpan?

Jul 7, 2010

A TimeSpan by default shows hours, minutes & seconds when converted to a string. How do I show only hours & minutes? I tried ts.ToString("hh:mm") but that doesn't work.

View 7 Replies

VS 2008 Parsing A String Into A TimeSpan?

Jul 14, 2010

I need to convert a string such as "01h45m" into a TimeSpan. I know I can split the string apart to get the numbers, just looking for something more elegant...

View 2 Replies

VS 2008 : Calculation Goes To The Last Entry As Stated The Multiply This Total By Number Of Days(dbl)?

May 3, 2011

I have an application that has 3 list boxes, one selects a workshop, the other a location. the third is to display selected costs.to do the calculation a loop is required. i have written the code but when i calculate the cost the final result to be displayed ends up as being the cost of the last work shop and location * 3,What is supposed to happen is the location is multiplied by the number of days(3 in this case) and added to the workshop cost.the loop is supposed to add all cost from the list box till all have been added.what is happening is the calculation goes to the last entry as stated the multiplys this total by number of days(dbl)?

View 1 Replies

VS 2008 For Loop - Annual Interest Rate Calculator

Dec 9, 2010

I am working on a calculator that does the annual percentage rate. The code has to use a For Loop (which I am new to). This is the code I have so far.

[Code]...

View 9 Replies

VS 2008 : Put A Multiply Buttons Vertically And When It The Control Exist Beyond There Size Of The Form Will Automatically Show A Scroll Bars?

Apr 16, 2009

How can i put a scrolling a buttons?I want a put a multiply buttons vertically and when it the control exist beyond there size of the form will automatically show a scroll bars...Is there have a control that i have to use?

View 6 Replies

How To Multiply Or Add Two Values

Sep 10, 2010

I am a student in South Africa. We have had a long strike in our education department. Thus resulting in our lecturer not teaching code adequately. I have managed to stumble using the text given but I cannot figure out how to multiply or add two values?

View 1 Replies

Calculator - Cannot Add/subtract/multiply By 0

Jan 11, 2011

I have built a small VB.NET Calculator but whenever I add, subtract or multiply by 0 the answer is always 0. Here is my code:

Spoiler
Option Explicit On
Public Class Calculator2

[Code]....

View 13 Replies

How To Multiply Hexadecimal Numbers

Aug 11, 2010

I need to figure out how to multiply hexadecimal numbers in vb .net 2008.Ex / 7E1 x 2 == FC2I was thinking maybe converting the hex to bytes, multiplying that, then back.

View 13 Replies

Multiply Insert To MySQL?

Jun 6, 2012

i have a problem for put in multiply input

Try
Dim StrSQL As String = "INSERT INTO boranga" & _
"(IdBorangA,Answers)" & _
"VALUES (@B_IdA,@B_Answer);"

[Code].....

by adding more parameter "parameterB_IdA.Value = Label1.Text" for IdBorangA
and "parameterB_Answer.Value = TextBox2.Text" for Answer but the result i get that the table only filling with the data from Label2.text and Textbox2.text.

View 1 Replies

Over Printing Multiply Pages?

Aug 9, 2008

My problem is printing multiply pages. The below test code prints from a ListView display, being populated from a database, which works fine for the first time, however, all subsequent times page two data is printed over page one data. Is there some way of resetting for successive printing.

Private Sub pd_PrintPage1(ByVal sender As Object, _ ByVal ev As Printing.PrintPageEventArgs)
Dim printFont As Font = New Font("Courier New", 11, FontStyle.Bold) Dim linesPerPage As Integer = 0 Dim yPos As Single = 0 Dim leftMargin As Single = ev.MarginBounds.Left Dim topMargin As Single = ev.MarginBounds.Top Dim

[code]....

View 14 Replies

Send Multiply Files Over FTP?

Feb 21, 2009

how to send multiply files over FTP with Visual Basic 2008 (.NET).

Here is the code I'm using:

Code:
Try
Dim clsRequest As System.Net.FtpWebRequest = _
DirectCast(System.Net.WebRequest.Create("ftp://FTP server here/" & "FTP output filename here" & ".txt"), System.Net.FtpWebRequest)

[code].....

View 4 Replies

User Input And Multiply?

Oct 14, 2010

I'm having trouble using Visual Basic. It's my first time with the program that my college course is requiring I use. I'm having problems programing the script for an application. It's suppose to take the rate of a bunch of employees that are programmed into the application using an array, and multiply it by a decimal number that the user inputs into the application.

View 5 Replies

VS 2005 : Can Multiply A String

Apr 18, 2009

Suppose I have a string, if I want to basically write it multiple times, depending on some integer value. How I can do that?For example:

dim STR1 as string = "</li></ul>"
dim INT1 as integer = 4
dim STR2 as string = " "

I would like to see the output as

STR2 = "</li></ul></li></ul></li></ul></li></ul>";

Can I achieve it in VB.NET?

View 3 Replies

VS 2010 Need To Select Value To Multiply

Feb 1, 2011

I still want to be able to show my code in front of the class/receive feedback. I originally had a program that would calculate the number of calories in your alcoholic beverage.Because I was new at it, I only had one of my beverages listed. I now want to create a combobox/ dropdown menu so that the user can select a standard alcoholic beverage (I have 6 to choose from). All the beverages have different average calorie counts. Once the user selects their beverage from the menu, they can type in the number of servings they consumed (standard size). They would then push a calculate button and would receive their total calorie count. I have everything up and working but everytime I enter a random number of servings and push calculate, it only multiplies by "100" which is the average calorie count for a serving of Light Beer-- the first listed.[code]

I just added the If/Then/Elseif stuff a couple of minutes ago, hoping it would work, but it doesn't. I know this is something simple but like I said, I'm brand new but I have searched everywhere trying to figure this out. I've watch 9 tutorials so far but they all don't really pinpoint what I want my program to do.

View 4 Replies

Multiply Textboxes Saved As One Txt File

Apr 18, 2012

if i had say 10 labels with 10 textboxes how would i save all those labels accosiated with that text box as one text file

say example

label = name ---- textbox1
label2 =surname ---- textbox2
label3 address ---- textbox3
etc

so in the text file it saves it to look like this

name = hayden
surname = doh
address = johnston hwy

View 3 Replies

Multiply The Values Of The Textboxes In Rdlc?

Jan 31, 2011

How can we multiply the values of the text boxes(reportitems) in rdlc report?

Ex. The expression of TextBoxResult report item is:

=Reportitems!TextBoxPrice.Value * Reportitems!TextBoxQuantity.Value

View 2 Replies

Multiply Two Text Boxes But Also After They Are Multiplied?

Oct 4, 2011

I'm trying to figure out how to multiply two text boxes but also after they are multiplied, they need to be added at the same time. For example, if in one text box I put 120000 and in another I put .06 - the answer multiplied together is 7200, but the final answer should show 127200.

[Code]...

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved