They're both correct. The first version (your version) was the first InputBox that was done - and it emulates the VB one. The second one is a more "object-oriented" version of InputBox - afaik no other language or library has an InputBox quite like this one ... it allows you to specify and capture information not other-wise availble, like the dialogresult. Was meaning to have some other properties as well (like title and default), might do them this weekend.