laakerules
2012-01-15 11:25:31
How would i only allow integers to be typed into the TEdit and then have them used say for an inventory number.
2012-01-15 11:25:31
2012-01-15 11:27:43
2012-01-15 11:33:07
Edit3 := TEdit.Create(FrmDesign);
Edit3.Parent := FrmDesign;
Edit3.Top := 350;
Edit3.Left := 75;
Edit3.Width := 100;
Edit3.Height := 27;
2012-01-15 11:38:21
Procedure ButtonClick(Sender: TObject);
Begin
frmDesign.ModalResult:= mrOk;
InvNumber:=StrToInt(Edit3.text);//you need to convert the value entered from a string
End; 2012-01-15 11:51:56
2013-10-26 17:43:41
From: Mark
ill assume you learnt this from tutorial and you have this procedureProcedure ButtonClick(Sender: TObject);
Begin
frmDesign.ModalResult:= mrOk;
InvNumber:=StrToInt(Edit3.text);//you need to convert the value entered from a string
End;
that should work
2013-10-27 09:43:13