CFunction.FreeArray
-------------------

Free an array parameter.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CFunction](component_CFunction.md) | [10.3](newinversion103.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CFunction.FreeArray"; FunctionRef; Index ) 

**MBS**( **"CFunction.FreeArray";** /\* Free an array parameter. \*/  
**$FunctionRef**; /\* The reference number for the function.e.g. $func \*/   
**$Index**) /\* The index for the parameter.  
Range is 0 to [CFunction.ParameterCount](CFunctionParameterCount.md)-1.e.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FunctionRef | The reference number for the function. | $func |
| Index | The index for the parameter.   Range is 0 to [CFunction.ParameterCount](CFunctionParameterCount.md)-1. | 0 |

### Result

Returns OK or error.

### Description

Free an array parameter.  
### Examples

Clear parameter:

 MBS ( "CFunction.FreeArray"; $function )  
### See also

- [CFunction.Call](CFunctionCall.md)
- [CFunction.GetArray](CFunctionGetArray.md)
- [CFunction.ParameterCount](CFunctionParameterCount.md)
- [CFunction.SetArray](CFunctionSetArray.md)

### Blog Entries

- [Calling C functions from FileMaker](https://www.mbsplugins.de/archive/2024-01-09/Calling_C_functions_from_FileM/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 25th April 2020 , last changed 25th April 2020

  
[CFunction.Call](CFunctionCall.md) - [CFunction.GetArray](CFunctionGetArray.md)

[HTML Version](CFunctionFreeArray.shtml)