Script Function Reference

Function Reference >Script Function Reference >Function Manipulation>enumFunctions

enumFunctions

enumFunctions returns a list of function names.

enumFunctions([type])

Parameters

type is an optional parameter specifying the type of function to generate a list for. The possible values are detailed below.

Return Value

A list of strings containing the names of all the calculator functions.

Additional Information

type can have the following values
  • "user"
  • "xy"
  • "polar"
  • "para2d"
  • "xyz"
  • "para3d"
  • "2dplot"
When one of these values is specified then only that type of function is in the list returned. If there are no parameters then all the functions are put into the list.

Example

function example()
	-- delete all the calculator functions
	fnList = enumFunctions()
	for i = 1,#fnList do
		deleteFunction(fnList[i])
	end
end