VIREBLC

Contents


"vireblc" is used to delete spaces at the start, the end or in the middle of a character string.

 

Syntax

   vireblc( string, option )

 

Parameters

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
values:
0, 1, 2, 3, 4, 5.

 

Examples

# 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

 

Description and comments

"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.

 

Comment

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.

 

Associated errors

Error

Description

ERMODE (10)

option is not numberical. String is not alphanumeric.

ERDOM (50)

option is not between 0 and 5.

 

Associated key words

CHAR - INSTR


CONTENTS]


Copyright © Sage 1999 - 2007