# Len - スクリプトおよびチャート関数

Len() は、指定された文字列の長さを返します。

構文:

Len(text)

戻り値データ型： 整数

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Len.htm)

#### 例: チャートの数式

| 例 | 結果 |
| --- | --- |
| `Len('Peter')` | '5' を返します |

[](https://help.qlik.com/en-US/sense/Subsystems/Hub/Content/Sense_Hub/Scripting/StringFunctions/Len.htm)

#### 例: ロード スクリプト

```
T1:
Load String, First&Second as NewString;
Load *, mid(String,len(First)+1) as Second;
Load *, upper(left(String,1)) as First;
Load  * inline [
String
this is a sample text string
capitalize first letter only ]; 
				
```

結果

| 文字列 | NewString |
| --- | --- |
| this is a sample text string | This is a sample text string |
| capitalize first letter only | Capitalize first letter only |