Results 1 to 2 of 2

Thread: Inputbox without cancel

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2000
    Location
    London, UK
    Posts
    145

    Post

    I'm using an Inputbox to get an integer-value in my app. Unfortunately, if you press cancel instead of OK the inputbox returns "", which is not a valid integer (surprise!).
    I guess I can input something like
    If x = "" Then
    End Sub
    End If

    But I don't want the user to press Cancel!
    Can I take the Cancel.button away?
    Thanks in advance,
    Pentax


    ------------------
    Wilhelm Tunemyr,
    Sweden

    [email protected]

    "Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
    Heinrich Heine (1797-1856)

    Pravda zvítezi!

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    I've sent you a form that I developed that looks like an InputBox. You can if you like, modify that form to remove or disable the Cancel button. It also has a property that allows you to directly determine which button was clicked.

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

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