-3
如果字符串中的字符少,我會嘗試設置掩碼。 像這樣: expected = 00000001 real = 001如何設置水晶報表上的數據庫字段的掩碼(visual studio 2008)
如果字符串中的字符少,我會嘗試設置掩碼。 像這樣: expected = 00000001 real = 001如何設置水晶報表上的數據庫字段的掩碼(visual studio 2008)
真的,我使用了這段代碼,並使用它!的[填充前導零的固定數目最多爲固定長度]
ReplicateString ("0",8-Length(cstr(ToNumber({SAGFacturaSOP.NumFactura}),0))) + cstr(ToNumber({SAGFacturaSOP.NumFactura}),0)
可能重複(http://stackoverflow.com/questions/10989266/padding-a-fixed-number-with-leading-zeros-先進的一個固定長度) –