Returns the value at the top of an SRP Stack without removing it.
Syntax
Value = SRP_Stack("Peek", Handle)
Returns
The value at the top of the stack.
Parameters
Parameter | Description |
---|---|
Handle | Handle to an existing SRP Stack (REQUIRED) |
Remarks
The Peek service gets the value at the top of the stack without removing it.
Examples
// Create the stack Handle = SRP_Stack("Create") // Add values SRP_Stack("Push", Handle, "ABC") SRP_Stack("Push", Handle, "DEF") SRP_Stack("Push", Handle, "EFG") // Peek at the top of the stack, which will be "EFG" Value = SRP_Stack("Peek", Handle) // Play nice with memory SRP_Stack("Release", Handle)