VIREBLC |
"vireblc" is used to delete spaces at the start, the end or in the middle of a character string.
vireblc( string, option )
|
Element |
Description |
Restrictions |
|
string |
Alphanumeric expression for the string to be modified. |
None. |
|
option |
Integer numerical expression for the option to use to delete spaces from the string. |
Can only have the |
# Display the various vireblc
options. This programme displays:
# !Test vireb !
# ! Test vireb!
# !Test vireb!
# !Test!
# !Testvireb!
# ! Test vireb !
For I = 0 To 5
Infbox "!"+vireblc(" Test
vireb ", I)+"!"
Next I
"vireblc" is used to delete spaces from a string using the following options.
The result is a Char type.
|
Option |
Removal of spaces |
|
0 |
At the start of the string. |
|
1 |
At the end of the string. |
|
2 |
At the start and end of the string. |
|
3 |
At the start, truncating to the first following space. |
|
4 |
Throughout the string. |
|
5 |
Consecutive spaces throughout the string. |
Formatting options for a string v0, v1, v2, v3, v4, v5 format the string before the input, using the "vireblc" function with the parameter for the number.
|
Error |
Description |
|
ERMODE (10) |
option is not numberical. String is not alphanumeric. |
|
ERDOM (50) |
option is not between 0 and 5. |
|
|