You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Gets the number of elements in an SRP Stack.

Syntax

Count = SRP_Stack("Count", Handle)

Returns

The number of elements in the stack

Parameters

ParameterDescription
HandleHandle to an existing SRP Stack (REQUIRED)

Remarks

The Count service gets the size of the stack.

Examples

// Create an empty stack
Handle = SRP_Stack("Create")

// Push an element
SRP_Stack("Push", Handle, "SRP")

// If we get the count, it will be 1
Count = SRP_Stack("Count", Handle)

// Play nice with memory
SRP_Stack("Release", Handle)
  • No labels