Re: syntax error ?????????

new topic     » goto parent     » topic index » view thread      » older message » newer message

Bernie,
You can't call a function without assigning it's
return value.
try:
function foo(atom x)
--
  return 0
--
end function

function fum(atom fee)
--
  atom trash
  trash=foo(fee)
  return 0
--
end function

-E.Allen Soard

---- Begin Original Message ----
 From: Bernie Ryan <bwryan at PCOM.NET>
Sent: Thu, 27 Jan 2000 10:06:54 -0500

To: EUPHORIA at LISTSERV.MUOHIO.EDU
Subject: syntax error ?????????

Why does this code give me a syntax error when I
run it ???????



function foo(atom x)
--
  return 0
--
end function

function fum(atom fee)
--
  foo(fee)
  return 0
--
end function

---- End Original Message ----


Bookmark the HyperMart Small Business Center. All the tools you need to
succeed!
http://www.hypermart.net/center/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu