---
title: "toUpper"
canonical: "https://support.appfire.com/space/PSCONF/15303163/toUpper"
format: markdown
---
> Macro (aura-html)

> Macro (table-plus)
> 
> |  |  |  |  |
> | --- | --- | --- | --- |
> | **Syntax** | toUpper(string) | **Package** |  |
> | **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns the string only with **upper case letters**.

Returns the given string that has it's letters converted to **upper case**. If the string contains other characters than letters the chars that are not letters will not be converted.

## Parameters

> Macro (table-plus)
> 
> | Parameter name | Type | Required | Description |
> | --- | --- | --- | --- |
> | string | String | Yes | Specifies a character expression that will be converted to **upper case**. If the string contains other characters than letters the chars that are not letters will not be converted. |

## Return Type

**String**

## Examples

### Example 1

```javascript
wret = toUpper("fOoBaR");
print(wret);
```

Prints **"FOOBAR"**

### Example 2

```javascript
wret = toUpper("AbC2w&345f.ff");
print(wret);
```

Prints **"ABC2W&345F.FF"**

## See also

> Macro (contentbylabel)