1. About.com
  2. Computing & Technology
  3. Visual Basic

Discuss in my forum

Dan Mabbutt

Fixing the InputBox

By , About.com Guide   November 19, 2009

Follow me on:

In The Trouble With InputBox, I pointed out that InputBox wasn't really a very good way to input data to a ListBox and I pointed out that it also had a fatal flaw - there wasn't any way to tell the difference between blank input and the Cancel button.

It turns out that this isn't quite true ... About Visual Basic reader "SmetsRoger" pointed out that his whole night school class had worked on this problem and had discovered a solution. I checked it out and, yes, the solution does work ... for now. But I wouldn't use it. The reason it works now and why I still wouldn't use it is a fascinating investigation that you can read about in a followup article, Fixing the InputBox.

Thanks much to SmetsRoger for sending this one in! It was fun!

Comments
No comments yet.  Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Related Searches inputbox

©2012 About.com. All rights reserved. 

A part of The New York Times Company.