[Qgis-user] How fill the attribute table with a fixed-lenght codeblock value

Andrea Peri aperi2007 at gmail.com
Thu Nov 26 02:59:33 PST 2015


Hi,

I need to fill a filed with a code block like this:

"0001"
"0002"
"0003"
...
"0010"
"0011"

I see the caluclator has the "$rownum" variable, but the result will be this:

"1"
"2"
"3"
...
"9"
"10"

And this is not affordable because the lenght is not costant for us need.

I dont know if there is a solution to allow a fixed-length code-block
value in the qgis calculator.

Thx

A.

-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------



More information about the Qgis-user mailing list