Page 1 of 1

Accepting Integer values with an Inputbox

PostPosted: August 8th, 2005, 6:19 pm
by dynobill
I can't seem to get an InputBox to accept a number. I can input it as a string and then convert it but I don't want to do that.

var
p: integer;

......

p:=InputBox('Qty','How Many?,1);

does not work.

Delphi newbie

Thanks

PostPosted: August 10th, 2005, 6:15 am
by Johnny_Bit
well, since return type and input type are strings, it's imposible to put them as integers. Instead try to create your own InputBox, it's just few lines of code, and you won't have to bother with standard InputBox.