Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4   8.5   8.6    Statistic  

QuickList.PopFirst

Pops the first value from a list.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
List 5.2 Yes Yes Yes Yes Yes
MBS( "QuickList.PopFirst"; ListRef )   More

Parameters

Parameter Description Example value
ListRef The reference to the list returned from QuickList.New function. $List

Result

Returns value or error.

Description

Pops the first value from a list.
Please note that QuickList.Pop is more efficient than QuickList.PopFirst.

Examples

Push and pop first:

Set Variable [$list; Value:MBS( "QuickList.New" )]
Set Variable [$r; Value:MBS( "QuickList.Push"; $list; "Hello" )]
Set Variable [$r; Value:MBS( "QuickList.Push"; $list; "World" )]
Show Custom Dialog ["List"; MBS( "QuickList.PopFirst"; $list )]
Show Custom Dialog ["List"; MBS( "QuickList.PopFirst"; $list )]
Set Variable [$r; Value:MBS( "QuickList.Free"; $list )]

See also

Created 2nd August 2015, last changed 2nd August 2015


QuickList.Pop   -   QuickList.Push

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos