# Len — funkcja skryptu i funkcja wykresu

Funkcja Len() zwraca długość ciągu wejściowego.

Składnia:

Len(text)

Typ zwracanych danych: liczba całkowita

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

#### Przykład: wyrażenie wykresu

| Przykład | Wynik |
| --- | --- |
| `Len('Peter')` | Zwraca „5”. |

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

#### Przykład: skrypt ładowania

```
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 ]; 
				
```

Wynik

| Ciąg znaków | NewString |
| --- | --- |
| this is a sample text string | This is a sample text string |
| capitalize first letter only | Capitalize first letter only |