initialize()
The initialize method is called before the first row of data is passed to a UDX.
The most common operations performed by initialize() are to validate data types for a VARARGS UDX, initialize variables, or to restore data from the SPUPad (see SPUPad API).
For a UDA, the initialize method is called prior to the first row of data being passed to the
accumulate method but is not called prior to the first row of data being passed to the merge or
finalResult methods.
Example
function initialize()
counter = 0
-- restore data from the SPUPad t = restoreTable("mytable")
end
function initialize()
for i,type in pairs(ARGTYPE) do
if type != TYPE_STRING and type != TYPE_UTF8STRING then error("This function only accepts STRING arguments!",0)
end
end
end