Use a Numberic Field from the object library. On the object pallete/Value tab click the Validation Pattern button. You can specify the format of the number for display etc there. EG. To have a nine digit number with leading zeros you will need the following pattern: num{999999999}
Setting the Validateion pattern will highlight errors.