Xbasic

WORD_EVALUATE Function

Syntax

Output_List as C = word_evaluate(C input_text ,C command_string [,C delimiter])

Arguments

Output_List

The processed list.

input_text

A list of entries separated by the Delimiter.

command_string

A quoted Xbasic command.

delimiter

Optional. Default = CR-LF.

Description

Evaluates an expression on each word in the input string

Discussion

The WORD_EVALUATE() function executes an Xbasic command against each member of a list.

Example

dim cc as C
cc = <<%str%
alpha
beta
gamma
%str%
? word_evaluate(cc, "left(value,3)", crlf() )
= alp
bet
gam

See Also