Re: what error?
- Posted by "Lucius L. Hilley III" <lhilley at CDC.NET> Jan 12, 2000
- 426 views
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 >