1. what error?

Robert, what does this mean?

source line is too long
{"Some 40-50 ships blocked the Hook of Holland, gateway to Rotterdam port, for 
almost eight hours. Municipal authorities went to court to force the ships to
move but
the protest ended just before t

in ex.err. I was hardcoding in a couple sentences of text, into a sequence, and
it exw
won't accept the line. What do i do? Read them in from a disk file, right?

Kat

new topic     » topic index » view message » categorize

2. Re: what error?

You'll have to break the string into multiple lines, like this:

{"Some 40-50 ships blocked the Hook of Holland, " &
"gateway to Rotterdam port, for " &
"almost eight hours. Municipal authorities " &
"went to court to force the ships to move but " &
"the protest ended just before ..."}

HTH,
Michael J. Sabal
>>> gertie at PELL.NET 03/01/01 01:58PM >>>
Robert, what does this mean?

source line is too long
{"Some 40-50 ships blocked the Hook of Holland, gateway to Rotterdam port, =
for=20
almost eight hours. Municipal authorities went to court to force the ships =
to move but=20
the protest ended just before t

in ex.err. I was hardcoding in a couple sentences of text, into a =
sequence, and it exw=20
won't accept the line. What do i do? Read them in from a disk file, right?

Kat

new topic     » goto parent     » topic index » view message » categorize

3. Re: what error?

Never thought that Dutch fishermen could even invoke errors in computer
programs!

Sterk spul, hè?


----- Original Message -----
From: "Kat" <gertie at PELL.NET>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, March 01, 2001 7:58 PM
Subject: what error?


> Robert, what does this mean?
>
> source line is too long
> {"Some 40-50 ships blocked the Hook of Holland, gateway to Rotterdam port,
for
> almost eight hours. Municipal authorities went to court to force the ships
to move but
> the protest ended just before t
>
> in ex.err. I was hardcoding in a couple sentences of text, into a
sequence, and it exw
> won't accept the line. What do i do? Read them in from a disk file, right?
>
> Kat
>
>
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: what error?

On 1 Mar 2001, at 11:45, kwibus at ZONNET.NL wrote:

> Never thought that Dutch fishermen could even invoke errors in computer
> programs!
> 
> Sterk spul, hè?

Mij verrichten niet vinden zij geleid welk.

Kat

> ----- Original Message -----
> From: "Kat" <gertie at PELL.NET>
> To: "EUforum" <EUforum at topica.com>
> Sent: Thursday, March 01, 2001 7:58 PM
> Subject: what error?
> 
> 
> > Robert, what does this mean?
> >
> > source line is too long
> > {"Some 40-50 ships blocked the Hook of Holland, gateway to Rotterdam port,
> for
> > almost eight hours. Municipal authorities went to court to force the ships
> to move but
> > the protest ended just before t
> >
> > in ex.err. I was hardcoding in a couple sentences of text, into a
> sequence, and it exw
> > won't accept the line. What do i do? Read them in from a disk file, right?
> >
> > Kat
> >
> >
> >
> 
> 
> 
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: what error?

I just finished a discussion about this very same thing
with Robert.

Kat, you'll find that Strings cannot be longer than 197 chars..

What might help you is to take a look at incbm.e which Graeme Burke was so
kind to share or ask him if
you could have a copy of incsesf.e for includeing sequences.

incbm.e by the way is not just for bitmaps it has a utility
included for sequences 1D & 2D named incseq

I'm sure you could add this to your favorite editor to
recognise and parse stings automatically as I've done
which makes .exe's somewhat smaller and is a get
around for the limitation of Euphoria.

Euman

----- Original Message -----
From: "Kat" <gertie at PELL.NET>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, March 01, 2001 13:58
Subject: what error?


| Robert, what does this mean?
|
| source line is too long
| {"Some 40-50 ships blocked the Hook of Holland, gateway to Rotterdam port,
for
| almost eight hours. Municipal authorities went to court to force the ships
to move but
| the protest ended just before t
|
| in ex.err. I was hardcoding in a couple sentences of text, into a
sequence, and it exw
| won't accept the line. What do i do? Read them in from a disk file, right?
|
| Kat
|
|
|
|

new topic     » goto parent     » topic index » view message » categorize

6. what error?

I am puzzled,, i don't understand the error after this code, the
displayseq() works fine, the sprint() gives that error...

for loop = 1 to length(text) do
  --   displayseq({sentword[loop]} & " " & sentword_syntax[loop] & {"\n"})
      sprint(1,sentword[loop] & " " & sentword_syntax[loop] & "\n")

end for -- loop = 1 to length(text) do

Syntax error - expected to see possibly 'end', not a function
      sprintf(1,sentword[loop] & " " & sentword_syntax[loop] & "\n")

What is it trying to tell me?

Kat

new topic     » goto parent     » topic index » view message » categorize

7. Re: what error?

You need to assign sprint() to something.
print(1, "Hello")  --Correct
sprint(1, "Hello") --Incorrect

s = sprint("Hello") -- Correct
s = sprint(1, "Hello") --Incorrect.. sprint only takes 1 parameter.

        Lucius L. Hilley III
        lhilley at cdc.net
+----------+--------------+--------------+
| Hollow   | ICQ: 9638898 | AIM: LLHIII  |
|  Horse   +--------------+--------------+
| Software | http://www.cdc.net/~lhilley |
+----------+-----------------------------+
----- Original Message -----
From: Kat <KSMiTH at PELL.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Wednesday, January 12, 2000 1:10 AM
Subject: what error?


> ---------------------- Information from the mail
header -----------------------
> Sender:       Euphoria Programming for MS-DOS
<EUPHORIA at LISTSERV.MUOHIO.EDU>
> Poster:       Kat <KSMiTH at PELL.NET>
> Subject:      what error?
> --------------------------------------------------------------------------
-----
>
> I am puzzled,, i don't understand the error after this code, the
> displayseq() works fine, the sprint() gives that error...
>
> for loop = 1 to length(text) do
>   --   displayseq({sentword[loop]} & " " & sentword_syntax[loop] & {"\n"})
>       sprint(1,sentword[loop] & " " & sentword_syntax[loop] & "\n")
>
> end for -- loop = 1 to length(text) do
>
> Syntax error - expected to see possibly 'end', not a function
>       sprintf(1,sentword[loop] & " " & sentword_syntax[loop] & "\n")
>
> What is it trying to tell me?
>
> Kat
>

new topic     » goto parent     » topic index » view message » categorize

8. Re: what error?

Kat,

'sprint' and 'sprintf' are not procedures, but functions, returning a
sequence (string) of characters. They should be used accordingly, for
instance:

s = sprint(123)    -- s is now "123"


----- Oorspronkelijk bericht -----
Van: Kat <KSMiTH at PELL.NET>
Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Verzonden: woensdag 12 januari 2000 7:10
Onderwerp: what error?


> I am puzzled,, i don't understand the error after this code, the
> displayseq() works fine, the sprint() gives that error...
>
> for loop = 1 to length(text) do
>   --   displayseq({sentword[loop]} & " " & sentword_syntax[loop] & {"\n"})
>       sprint(1,sentword[loop] & " " & sentword_syntax[loop] & "\n")
>
> end for -- loop = 1 to length(text) do
>
> Syntax error - expected to see possibly 'end', not a function
>       sprintf(1,sentword[loop] & " " & sentword_syntax[loop] & "\n")
>
> What is it trying to tell me?
>
> Kat

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu