INPUTS

attr
attribute to set.
format
C like formatting string, remember to use ''%ld'' !
val, ...
one or more paremeters for the format string.