|
-
Jun 19th, 2000, 05:51 AM
#1
Thread Starter
Junior Member
I don't understand the purpose of a Function Procedure, is it neccessary and when?
I was doing some example from a book and it spoke about doing function procedures here is my code with out the FP
It says to do a function procedure for the Pay Rate but I don't what the purpose is..If so How could I do one...any help appreciated in advance, thank you
Const cFIFTYFIVE As Currency = 0.55
Const cFIFTY As Currency = 0.5
Const cSIXTY As Currency = 0.6
Const cSIXTYFIVE As Currency = 0.65
Dim iPiece As Integer
Dim stName As String
If stName = Empty Then
MsgBox "no message", vbInformation
End If
If IsNumeric(txtPieces.Text) Then
iPiece = Val(txtPieces.Text)
miCounter = miCounter + 1
If iPiece <= 199 Then
mcTotal = iPiece * cFIFTY
ElseIf iPiece <= 399 Then
mcTotal = iPiece * cFIFTYFIVE
ElseIf iPiece <= 599 Then
mcTotal = iPiece * cSIXTY
ElseIf iPiece >= 600 Then
mcTotal = iPiece * cSIXTYFIVE
End If
Else
MsgBox "Please enter a Numeric value in Piece", vbInformation, "No Piece Number"
End If
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
|
Click Here to Expand Forum to Full Width
|