![]() If (v 600) then ShowMessage('Incorrect number') If (v 600) then ShowMessage('incorrect number') If (v = 0) or (v > 600) then ShowMessage('Incorrect number') Procedure TForm1.MaskEdit1(Sender: TObject) Maskedit1.text:=StringRepl ace(masked it1.text,' ','',) īut i get the same problem each time,so for some reason it doesnt seem to convert properly, i have tried the same with onexit which works kind of but i dont like it that way. When i convert the string to an integer it comes up with an error message saying it is not a valid integer value! I have tried using trim, trimright trimleft and Until the first forward slash i want to restrict the number between 0 and 600, then between the first and second forward slash i want to restrict between 1 and 600, 2nd and 3rd forward slash 1 to 600 and the last part after the third forward slash 1 to 600 as well. Moment in every way i can think of to make it work properlyīut it does not seem to work. To enter i have tried to modify the code i have at the I want to restrict the range of the number they are allowed I want to do is that when the user enters information I have an edit mask on a form which allows a user toĮnter information in the 999/999/999/999 format All ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |