REM on PRINT line - Script Writing - CHDK Forum
supplierdeeply

REM on PRINT line

  • 4 Replies
  • 4332 Views
REM on PRINT line
« on: 13 / September / 2010, 20:20:13 »
Advertisements
I am fairly new at using CHDK and have been writing some small scripts
for my SX200is. I have found the following...

I am using CHDK sx200is-100d-0.9.9-938
If I put a REM (comment) after the PRINT command it errors and halts the script.
I haven't found any mention of this on the CHDK Web site.

ie... print "Seq #";x;" ..."  rem print the sequence number

Are there any other issues with REM usage?

Thanks!

*

Offline reyalp

  • ******
  • 14114
Re: REM on PRINT line
« Reply #1 on: 13 / September / 2010, 21:14:16 »
REM should probably be on a line by itself.

AFAIK, this is common in primitive BASIC dialects, but there is no standard so who knows. If you want a documented language, I suggest using lua instead :)
Don't forget what the H stands for.

Re: REM on PRINT line
« Reply #2 on: 13 / September / 2010, 21:39:38 »
REM should probably be on a line by itself.
AFAIK, this is common in primitive BASIC dialects, but there is no standard so who knows. If you want a documented language, I suggest using lua instead :)

Ok thanks! I've never had a problem like that with a REM
Where's the best place to find out about LUA?

*

Offline reyalp

  • ******
  • 14114
Re: REM on PRINT line
« Reply #3 on: 13 / September / 2010, 21:51:55 »
For the language: http://www.lua.org/manual/5.1/

For the specifics of the CHDK implementation http://chdk.wikia.com/wiki/LUA
Don't forget what the H stands for.


Re: REM on PRINT line
« Reply #4 on: 13 / September / 2010, 22:03:57 »

Thanks for the LUA link!
I have all the links to CHDK and have been reading through them.
I didn't know where the LUA stuff was.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal