String tpid,ts
//tab_1.tabpage_1.cb_ok.Enabled = False
tpid = Trim(tab_1.tabpage_1.sle_pid.text)-------------去掉编号的 左右空格
If Len(tpid)<12 then ----------------------------如果长度小于 12
tpid = String(Dec(tpid),"000000000000")------------------12位数字来填充,不足用 0 补齐
tab_1.tabpage_1.sle_pid.text = tpid -----------------------设置 编号
End If