Im doing a form with an integer in one edit space...but when im putting the buttonclick process like this:
Delay:=Edit1.Text;
it give an error....
how can i do for this integer to be a constant with the name Delay???
Im doing a form with an integer in one edit space...but when im putting the buttonclick process like this:
Delay:=Edit1.Text;
it give an error....
how can i do for this integer to be a constant with the name Delay???
please i need help!!!!
Please do not double post, someone will answer when possible
The error occurs because *.text is a String whilst the Procedure "Wait" needs an Integer. To turn a string into an integer, use IntToStr
Code:Delay := StrToInt(Edit1.Text);
SRL Wiki | SRL Rules | SRL Stats
Ultimate SCAR Scripting Tutorial | Starblaster100's Auth System | Join the official SRL IRC now!
Help Keep SRL Alive! Please disable Advert Blockers on SRL! Help Keep SRL Alive!
![]()
![]()
Ohh thank very very much XD and sorry for double post
There are currently 1 users browsing this thread. (0 members and 1 guests)