Hi, Richard,

COFFRE Richard FTO wrote:
> 
> I'm sorry but I don't manage to use your example.
> 
> I include it like below
> 
> texte: read/lines file
> 
> foreach line parse/all texte "^/"
>

There's the problem.  In my simple example, the word SAMPLE
was set to a single string, and I used

    parse/all sample "^/"

to break that single string into a block of "lines".  In your
case, you've obtained the value of TEXTE via READ/LINES, so
it's already a block of lines.

> 
> But I have the following error :
> Script: "get_request_name.r" (29-Mar-2002)
> Filename? noms_requetes.txt
> ** Script Error: Expected one of: string! - not: block!
> ** Near: foreach line parse/all texte "^/"
> 

That error message is essentially complaining that

    parse/all foo "^/"

needs for FOO to be a string, not a block.  In your case
just use

    foreach line texte [

etc.

-jn-
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to