Page 1 of 1

[06 Feb 2008] Falling at the first hurdle

Posted: Sat Jun 13, 2020 5:31 pm
by lairdpleng
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 06 Feb 2008 10:00:00 -0000

Hi. I have copied the ReadDirectory() example from the Hollywood guide into a blank test document called rdir.hws.

Code: Select all

f$ = ()
d$ = ()
ReadDriectory("SYS:",f$,d$)
WaitLeftMouse()
When attempting to compile the script I get the following error:

Code: Select all

Unexpected symbol!
File: rdir.hws (current line: 1)
Why isn't this working?

[06 Feb 2008] Re: Falling at the first hurdle

Posted: Sat Jun 13, 2020 5:31 pm
by Robin
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 6 Feb 2008 12:16:01 +0100 (CET)

Hi,
f$ = () d$ = () ReadDriectory("SYS:",f$,d$) WaitLeftMouse()

When attempting to compile the script I get the following error:

Unexpected symbol! File: rdir.hws (current line: 1)

Why isn't this working?
f and d are tables. Tables are inited with {} not () -- Robin - http://my.morphosi.net/

[06 Feb 2008] Re: Falling at the first hurdle

Posted: Sat Jun 13, 2020 5:31 pm
by lairdpleng
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 06 Feb 2008 12:19:31 -0000

Hi Robin. Yes I just noticed that! Feeling pretty dim now (no pun intended)!

cheers! Clayton