-- (Comment Symbol)


-- <comment>


The double hyphen (--), or comment symbol, prefaces a comment in the script editing window. Everything between the comment symbol and the next return is ignored by the Oracle Media Talk parser. There can be no intervening spaces or other symbols between the hyphens. Code comments are a very useful means of documenting how your application works. Oracle Media Talk code is already very intuitive and easy to read, but comments can help clarify the purpose of ambiguous operations. Commenting can also be a useful way to temporarily disable part of your script without deleting code.



Create a button and enter the following script: on mouseUp -- This handler will display a message -- saying whether -- part of its code is commented out. put "commented out" into message_text -- put "not commented out" into message_text put message_text end mouseUp Save the script and try the button. Then open the button's script, remove the hyphens before the second put command, and try the button again.
This text has been mechanically extracted from the Oracle Media Objects MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.