PK with leading zeros( T040001 )
The T040001 register was suggested by a RadCORE user.
As we have a CRUD for inheritance (frmBaseCad) it controls the generation part of the sequential (or not) for recording the records.
If you look at the structure of the table "T040001 'you will see that the PK is not INTEGER but STRING.
Studying the code of the CLICK event of "btnSaveReg" you can see the criticisms that are made to suit the PK datatype.
In this case, a sequential will be generated normally, but in a string field and you don't need to change anything in your project's code.
But if you use a zero padding model ('0') to the left of the sequential code?
Again, go to "uConst.pas" and just tell RadCORE what the default number of ZEROS (Ex: TAB_CODIGO_ZEROS = 6) you use in your tables and he takes care of doing the job, again, without need to change any encoding.
Created with the Personal Edition of HelpNDoc: Easily create EPub books