Results 1 to 40 of 159

Thread: [RESOLVED] Piecework Visual Basic 6.0

Threaded View

  1. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Piecework Visual Basic 6.0

    VB Code:
    1. 'missing parenthese here
    2. public Function GetPayPerEmp ingTotalPcs As Long)As Currency
    3. 'should be
    4. public Function GetPayPerEmp [color=blue][b]([/b][/color][b][/b]ingTotalPcs As Long)As Currency
    VB Code:
    1. 'these need to be on different lines
    2. 'not
    3.  lblAmount.Caption =  FormatCurrency(curAmount, 2)  cmdCalculate. Enabled =  False
    4. 'but
    5.  lblAmount.Caption =  FormatCurrency(curAmount, 2)  
    6. cmdCalculate. Enabled =  False
    VB Code:
    1. 'got one too many lines here
    2. 'not
    3. strMessageString = "Total number of pieces: " & mintTotalNumber & vbCrLf & _
    4. "Total Pay: " & strFormattedPay & vbCrLf & _
    5.  
    6. "Average Pay: " & strFormattedPay
    7. MsgBox strMessageString, vbInformation, "Piecework summary"
    8. 'but
    9. strMessageString = "Total number of pieces: " & mintTotalNumber & vbCrLf & _
    10. "Total Pay: " & strFormattedPay & vbCrLf & _
    11. "Average Pay: " & strFormattedPay
    12. MsgBox strMessageString, vbInformation, "Piecework summary"
    Last edited by Hack; Oct 3rd, 2005 at 07:23 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width