| 1 |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>To Create a New Program</title><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"><link rel="home" href="index.html" title="Manual do Genius"><link rel="up" href="ch03.html" title="Chapter 3. Basic Usage"><link rel="prev" href="ch03.html" title="Chapter 3. Basic Usage"><link rel="next" href="ch03s03.html" title="To Open and Run a Program"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">To Create a New Program </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch03.html">Prev</a> </td><th width="60%" align="center">Chapter 3. Basic Usage</th><td width="20%" align="right"> <a accesskey="n" href="ch03s03.html">Next</a></td></tr></table><hr></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="genius-usage-create-program"></a>To Create a New Program </h2></div></div></div><p lang="en"> |
| 2 |
If you wish to enter several more complicated commands, or perhaps write a complicated |
| 3 |
function using the <a class="link" href="ch05.html" title="Chapter 5. GEL Basics">GEL</a> language, you can create a new |
| 4 |
program; really just a file with many commands. |
| 5 |
</p><p lang="en"> |
| 6 |
To start writing a new program, choose |
| 7 |
<span class="guimenu">File</span> → <span class="guimenuitem">New |
| 8 |
Program</span>. A new tab will appear in the work area. You |
| 9 |
can write a <a class="link" href="ch05.html" title="Chapter 5. GEL Basics">GEL</a> program in this work area. |
| 10 |
Once you have written your program you can run it by |
| 11 |
<span class="guimenu">Calculator</span> → <span class="guimenuitem">Run</span> (or |
| 12 |
the <span class="guilabel">Run</span> toolbar button). |
| 13 |
This will execute your program and will display any output on the <span class="guilabel">Console</span> tab. |
| 14 |
Executing a program is equivalent of taking the text of the program and |
| 15 |
typing it into the console. The only difference is that this input is done |
| 16 |
independent of the console and just the output goes onto the console. |
| 17 |
<span class="guimenu">Calculator</span> → <span class="guimenuitem">Run</span> |
| 18 |
will always run the currently selected program even if you are on the <span class="guilabel">Console</span> |
| 19 |
tab. The currently selected program has its tab in bold type. To select a |
| 20 |
program, just click on its tab. |
| 21 |
</p><p lang="en"> |
| 22 |
To save the program you've just written, choose <span class="guimenu">File</span> → <span class="guimenuitem">Save As...</span>. |
| 23 |
Similarly as in other programs you can choose |
| 24 |
<span class="guimenu">File</span> → <span class="guimenuitem">Save</span> to save a program that already has |
| 25 |
a filename attached to it. If you have many opened programs you have edited and wish to save you can also choose |
| 26 |
<span class="guimenu">File</span> → <span class="guimenuitem">Save All Unsaved</span>. |
| 27 |
</p><p lang="en"> |
| 28 |
Programs that have unsaved changes will have a "[+]" next to their filename. This way you can see if the file |
| 29 |
on disk and the currently opened tab differ in content. Programs which have not yet had a filename associated |
| 30 |
with them are always considered unsaved and no "[+]" is printed. |
| 31 |
</p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch03.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch03s03.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 3. Basic Usage </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> To Open and Run a Program </td></tr></table></div></body></html> |