hi, i know, this is a dummy question, but, how if i have edit1, edit2, edit3..., how can i set the mouse cursor to them, if i want it in edit5 for example, what should i write?
If you are using an ordinary TEdit it is up to you to write code to verify that the data entered is valid for your purposes.
One way is to use StrToIntDef and then either report that the string is not an integer (i.e., you got the default value) or it is out of range, as the case may be.
Or use a TMaskEdit. They are a royal pain with some nearly untrappable exceptions showing messages in english (a very bad thing if you work in any other language), but if you are starting with Delphi, better get a hang on the more standard controls berfore moving to third party ones.
You'll gain in knowledge and mind sanity in the middle run.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.