-
Conituation of VB question
Sorry, I accidentally hit the enter button before I finished. I need to utilize
an array to hold valid values for hourly wages. If the rate entered is not
valid a message needs to be printed that the rate is invalid. If the value
matches one found in the table then the individuals wages and such will
be printed. The valid rate of pay must be stored in an array. Out put will
be sent to the printer using the printer.print and ending with printer.enddoc
to eject. The error message can only contain the persons name and and the
error message "invalid rate of pay". Once all of the records have been processed
the program should print a total line that contains the total number of payroll,
number of valid employees and the total hours worked. The final report should
also print the number of error records. All output needs to be sent to the
printer making sure to maintain decimal alignment for the column totals.
Can anyone help???? THANKS!!!!!
-
Re: Conituation of VB question
Sometimes to validate my data on the form, instead of trying to validate data
as the user selects it,
I restrict input or validate data when the data is read. In this case I would
write a routine
that reads in the data, possible checking for unique values and then loads
the data into a Combo box(es).
There is a style property of the combo box that can be set to 2 - dropdown
list
this will restrict the user to only select what is in the combo box. Hope
this helps
"Belinda" <Belinda501@aol.com> wrote:
>
>Sorry, I accidentally hit the enter button before I finished. I need to
utilize
>an array to hold valid values for hourly wages. If the rate entered is
not
>valid a message needs to be printed that the rate is invalid. If the value
>matches one found in the table then the individuals wages and such will
>be printed. The valid rate of pay must be stored in an array. Out put
will
>be sent to the printer using the printer.print and ending with printer.enddoc
>to eject. The error message can only contain the persons name and and
the
>error message "invalid rate of pay". Once all of the records have been
processed
>the program should print a total line that contains the total number of
payroll,
>number of valid employees and the total hours worked. The final report
should
>also print the number of error records. All output needs to be sent to the
>printer making sure to maintain decimal alignment for the column totals.
> Can anyone help???? THANKS!!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks