Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
FM.ArgumentCount
Queries number of arguments.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
FM | 5.1 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
MBS( "FM.ArgumentCount" )
Parameters
none
Result
Returns number or error.
Description
Queries number of arguments.Those arguments are passed when FileMaker is launched from command line, a batch file or a link on windows.
Examples
Query all arguments:
While(
// setup
[count = MBS( "FM.ArgumentCount" ); index = 0; list = ""];
// condition
index < count ;
// add nth argument to list
[ list = list & MBS( "FM.Argument"; index ) & ¶; index = index + 1 ];
// return result
list )
See also
Example Databases
Blog Entries
This function is free to use.
Created 1st March 2015, last changed 13th June 2021