CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 1999
    Location
    Baytown, TX, United States
    Posts
    23

    InputBox function

    I want the precentage raise to be (.05)and multiply it in the form. I've already entered the following code
    [vbcode]
    Const conPrompt As String = "Enter percentage raise"
    Const conTitle As String = "Precentage Raise"
    Dim intRaise As Integer
    intRaise = Val(InputBox("Enter precentage raise", "Raise"))
    End Sub

    kazooie21

  2. #2
    Join Date
    Oct 1999
    Location
    S.W. Wyoming
    Posts
    25

    Re: InputBox function

    One problem, here. If your variable intRaise is declared as Integer, there is no way for it to contain a value .05. Declare the variable as Single or Double.

    Reid Allen Robbins
    2205 E. Teton Blvd.
    Green River, WY 82935

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

Featured