|
| | |
|
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? |
|
|
Example 1
|
|
Example 2 |
|
Example 3 |
Complete("Kalipso", "*", 10, False, True)
Result = Kalipso*** |
|
Complete("Kalipso", "*", 10, True, False)
Result = ***Kalipso |
|
Complete("Kalipso", "*", 10, True, True)
Result = **Kalipso* |
| |
|
|
|
|
| Example 4 |
|
Example 5 |
|
Example 6 |
Complete("Kalipso", "*", 10, False, False)
Result = Kalipso |
|
Complete("Kalipso", "*#", 10, False, True)
Result = Kalipso*#* |
|
Complete("Kalipso", "*#", 10, True, True)
Result = *#Kalipso* |
- If you specify to Complete Left and Complete Right, the completion method starts at left.
- If you specify to don't Complete Left and don't Complete Right, the returned value is the String to Complete.
|
Updated: 11/5/2014 11:49 AM |
| |
|
|
|