CFunction.ParameterType
-----------------------

Queries parameter type for a parameter.

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

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

**MBS**( **"CFunction.ParameterType";** /\* Queries parameter type for a 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 text or error.

### Description

Queries parameter type for a parameter.  
See table with types below.  
  
| Type | Name | Description |
|---|---|---|
| v | void | nothing |
| B | BOOL | Boolean value |
| c | char | signed 8 bit value |
| C | unsigned char | unsigned 8 bit value |
| s | short | signed 16 bit value |
| S | unsigned short | unsigned 16 bit value |
| i | int | signed 32 bit value |
| I | unsigned int | unsigned 32 bit value |
| j | long | for Windows 32-bit value, for MacOS and Linux 64-bit value |
| J | unsigned long | for Windows 32-bit value, for MacOS and Linux 64-bit value |
| l | long long | signed 64 bit value |
| L | unsigned long long | unsigned 64 bit value |
| f | float | floating point number in 32-bit size |
| d | double | floating point number in 64-bit size |
| p | pointer | pointer in 32 or 64-bit. |
| Z | C String | C style string with zero byte as end. |

### See also

- [CFunction.ParameterCount](CFunctionParameterCount.md)

This function checks for a license.

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

  
[CFunction.ParameterCount](CFunctionParameterCount.md) - [CFunction.Release](CFunctionRelease.md)

[HTML Version](CFunctionParameterType.shtml)