Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

QuickList.AddMultiValue

Adds a value or list to the list.

Component: List
Version: 7.2
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "QuickList.AddMultiValue"; ListRef; Text; Count )

Parameters

Parameter Description Example value
ListRef The reference to the list returned from QuickList.New function. $List
Text The text to add.
Can be a list itself.
"Hello"
Count The number of times to add the value/list.
Default is 0.
5

Result

Returns OK or error.

Description

Adds a value or list to the list.

Examples

Create a list:

Let ( [
  q = MBS( "QuickList.New" );
  r = MBS( "QuickList.AddValue"; q; "First" );
  r = MBS( "QuickList.AddMultiValue"; q; "Middle"; 10 );
  r = MBS( "QuickList.AddValue"; q; "Last" );
  list = MBS("QuickList.GetList"; q);
  r = MBS( "QuickList.Free"; q )
]; list )

Example result:
First
Middle
Middle
Middle
Middle
Middle
Middle
Middle
Middle
Middle
Middle
Last

Create list from list:

Let ( [
  q = MBS( "QuickList.New" );
  r = MBS( "QuickList.AddMultiValue"; q; "Hello¶World"; 3 );
  list = MBS("QuickList.GetList"; q);
  r = MBS( "QuickList.Free"; q )
]; list )

Example result:
Hello
World
Hello
World
Hello
World

See also


QuickList.AddList   -   QuickList.AddPostfix

Feedback: Report problem or ask question.




Links
MBS Realbasic Plugins - Nachhilfe in Nickenich