<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=Try</id>
	<title>Try - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pickwiki.org/index.php?action=history&amp;feed=atom&amp;title=Try"/>
	<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=Try&amp;action=history"/>
	<updated>2026-04-28T22:12:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://pickwiki.org/index.php?title=Try&amp;diff=2294&amp;oldid=prev</id>
		<title>Conversion script: link fix</title>
		<link rel="alternate" type="text/html" href="https://pickwiki.org/index.php?title=Try&amp;diff=2294&amp;oldid=prev"/>
		<updated>2015-02-26T23:48:56Z</updated>

		<summary type="html">&lt;p&gt;link fix&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Back to [[BasicSource]]&lt;br /&gt;
&lt;br /&gt;
This program allows you to compile and run basic code from the command line.&lt;br /&gt;
&lt;br /&gt;
You can enter the code on the command line or just enter the command and let it prompt for multi-line input.&lt;br /&gt;
&lt;br /&gt;
It writes an item TRIAL to a file called BP, and then compiles and runs it.&lt;br /&gt;
&lt;br /&gt;
If you want a different file or item name, you will have to amend the source code.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
      PROGRAM TRY &lt;br /&gt;
 * ECL - KRJ - Run command line or multiple input lines as a program&lt;br /&gt;
      FOLDER = &amp;#039;BP&amp;#039;&lt;br /&gt;
      ITEMID = &amp;#039;TRIAL&amp;#039;&lt;br /&gt;
      THIS = @SENTENCE&lt;br /&gt;
      POSN = INDEX(UPCASE(THIS),&amp;#039;TRY&amp;#039;,1)&lt;br /&gt;
      THIS = THIS[POSN+4,99999]&lt;br /&gt;
      OPEN FOLDER TO THAT ELSE&lt;br /&gt;
         CRT &amp;#039;Cannot open file &amp;#039;:FOLDER&lt;br /&gt;
         CRT &amp;#039;Edit the program and change the file name to suit&amp;#039;&lt;br /&gt;
         STOP&lt;br /&gt;
      END&lt;br /&gt;
      IF TRIM(THIS) = &amp;#039;&amp;#039; THEN&lt;br /&gt;
         THIS = &amp;#039;&amp;#039;&lt;br /&gt;
         CRT &amp;#039;Enter lines of code or press &amp;lt;Enter&amp;gt; for help&amp;#039;&lt;br /&gt;
         LOOP&lt;br /&gt;
            INPUT LINE&lt;br /&gt;
         UNTIL LINE = &amp;#039;&amp;#039; DO&lt;br /&gt;
            THIS&amp;lt;-1&amp;gt; = LINE&lt;br /&gt;
         REPEAT&lt;br /&gt;
      END&lt;br /&gt;
      IF TRIM(THIS) = &amp;#039;&amp;#039; THEN&lt;br /&gt;
         CRT &amp;#039;Utility to run program ccode from TCL[[/ECL]]&amp;#039;&lt;br /&gt;
         CRT&lt;br /&gt;
         CRT &amp;#039;Syntax:&amp;#039;&lt;br /&gt;
         CRT &amp;#039;   TRY {BASIC COMMANDS}&amp;#039;&lt;br /&gt;
         CRT&lt;br /&gt;
         CRT &amp;#039;Example:&amp;#039;&lt;br /&gt;
         CRT &amp;#039;   TRY CRT SYSTEM(3)&amp;#039;&lt;br /&gt;
         CRT&lt;br /&gt;
         CRT &amp;#039;If you just enter TRY, then you can enter multiple lines&amp;#039;&lt;br /&gt;
         CRT &amp;#039;which will be compiled and run when you enter a blank line&amp;#039;&lt;br /&gt;
         STOP&lt;br /&gt;
      END&lt;br /&gt;
      WRITE THIS ON THAT, ITEMID&lt;br /&gt;
      EXECUTE &amp;#039;BASIC &amp;#039;:FOLDER:&amp;#039; &amp;#039;:ITEMID&lt;br /&gt;
      EXECUTE &amp;#039;RUN &amp;#039;:FOLDER:&amp;#039; &amp;#039;:ITEMID&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Conversion script</name></author>
	</entry>
</feed>