我想创建一个自动递增的事实ID,但事实ID应该像这样的问题FA001如何在每次保存事实时对其进行递增
我用这种方法
string bill ="fa"
string Num = "001"
for i As integer = 0 to .Numcount -1
Num = val(Num)+1
if (Num.length >= 3 ) then
bill = bill & "Num"
else
Num= "0" & Num end if
Num= "0" & Num
end if
next