Sets given function active/inactive.

Namespace: XpressnetLib
Assembly: XpressnetLib (in XpressnetLib.dll) Version: 0.1.4195.39796

Syntax

C#
public bool LocoSetFunction(
	int locoAddr,
	int function,
	bool fvalue
)
Visual Basic
Public Function LocoSetFunction ( _
	locoAddr As Integer, _
	function As Integer, _
	fvalue As Boolean _
) As Boolean
Visual C++
public:
bool LocoSetFunction(
	int locoAddr, 
	int function, 
	bool fvalue
)

Parameters

locoAddr
Type: System..::..Int32
Locomotive address
function
Type: System..::..Int32
Function number (0-12)
fvalue
Type: System..::..Boolean
Function value (true = active)

Return Value

True of the operation is successful.

See Also