# Complete

This Function returns a \<string>, composed by the *String to Complete* completed at right with the specified *Char*, with the specified *Total Length*.

### Parameters

* **String to Complete** <*string*> - Original string to be completed.
* **Char** <*string*> - Char to use in the completion.
* **Total Length** <*numeric*> - Final length of the string after completion.
* **Complete Left** <*boolean*> - Complete the string at left side?
* **Complete Right** <*boolean*> - Complete the string at right side?<br>

### Examples

* *Example 1*

Complete("Kalipso", "\*", 10, False, True)\
**Result** = Kalipso\*\*

* *Example 2*

Complete("Kalipso", "\*", 10, True, False)\
**Result** = \*\*\*Kalipso

* *Example 3*

Complete("Kalipso", "\*", 10, True, True)\
**Result** = \*\*Kalipso\*

* *Example 4*

Complete("Kalipso", "\*", 10, False, False)\
**Result** = Kalipso

* *Example 5*

Complete("Kalipso", "\*#", 10, False, True)\
**Result** = Kalipso\*#\*

* *Example 6*

Complete("Kalipso", "\*#", 10, True, True)\
**Result** = \*#Kalipso\*

{% hint style="info" %}
If you specify to **Complete Left** and **Complete Right**, the completion method starts at left.
{% endhint %}

{% hint style="info" %}
If you specify to don't **Complete Left** and don't **Complete Right**, the returned value is the **String to Complete**.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/kalipso5/developing/form/expressions/functions/functions-descriptions/string-functions/complete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
