Next Topic

Previous Topic

Book Contents

Sample Script: OnEnumerate

function OnEnumerate(sFieldToEnum)
	
	--The variable returned must be called "Config" so KNM can find it.
	Enum = LuaScriptEnumResult()
	
	--Second argument
	if sFieldToEnum == "Argument 2" then 
Enum:Add("First value")
Enum:Add("Second value")
		Enum:Add("Third value")
	end
	
	return Enum
end