Complete
Kalipso - Form - Expressions - Functions - Functions Descriptions - String Functions - 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?
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*
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.
Last updated