User Tools

Site Tools


en:documentation:script_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:documentation:script_example [2014/10/11 14:22] – [Generality] pchen:documentation:script_example [2016/01/20 15:55] (current) – [Script example] pch
Line 2: Line 2:
  
 This page give tips and example of scripting functions.\\ This page give tips and example of scripting functions.\\
-You can also look at the three [[toolbox|standard tool box]] code from within the program.  +You can also look at the three [[toolbox|standard tool box]] code from within the program.\\  
 +For more details about a specific function see the [[script_reference|script reference]] page.
 ===== Generality ===== ===== Generality =====
  
Line 274: Line 274:
 var r:TstringList; var r:TstringList;
 begin begin
-  r:=TstringList.create;+  GetSL('STRL1',r); 
 +  r.clear;
   RunOutput('dir',r);   RunOutput('dir',r);
   Memo_1.lines.assign(r);   Memo_1.lines.assign(r);
-  r.free; 
 end. end.
 </code> </code>
en/documentation/script_example.1413030120.txt.gz · Last modified: 2015/11/06 20:33 (external edit)