Accepting Integer values with an Inputbox

Please discuss general Delphi programming topics here.

Accepting Integer values with an Inputbox

Postby dynobill » August 8th, 2005, 6:19 pm

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.

p: integer;


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

does not work.

Delphi newbie

Posts: 2
Joined: August 8th, 2005, 4:03 pm

Postby Johnny_Bit » August 10th, 2005, 6:15 am

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.
VIP Member
VIP Member
Posts: 455
Joined: June 15th, 2003, 9:56 am

Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 1 guest