<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=QtScript</id>
	<title>QtScript - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=QtScript"/>
	<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=QtScript&amp;action=history"/>
	<updated>2026-05-07T16:53:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=QtScript&amp;diff=385&amp;oldid=prev</id>
		<title>LabRPS at 07:25, 10 August 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=QtScript&amp;diff=385&amp;oldid=prev"/>
		<updated>2022-08-10T07:25:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:25, 10 August 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{TOCright}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;LabRPS supports ECMAScript like dynamic scripting language, as defined in standard [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMA-262]. Microsoft&amp;#039;s JScript, and Netscape&amp;#039;s JavaScript are also based on the ECMAScript standard. For an overview of ECMAScript, see the [http://doc.qt.io/qt-5/ecmascript.html ECMAScript reference]. If you are not familiar with the ECMAScript language, there are several existing tutorials and books that cover this subject, such as [http://shop.oreilly.com/product/9780596805531.do JavaScript: The Definitive Guide].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;LabRPS supports ECMAScript like dynamic scripting language, as defined in standard [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMA-262]. Microsoft&amp;#039;s JScript, and Netscape&amp;#039;s JavaScript are also based on the ECMAScript standard. For an overview of ECMAScript, see the [http://doc.qt.io/qt-5/ecmascript.html ECMAScript reference]. If you are not familiar with the ECMAScript language, there are several existing tutorials and books that cover this subject, such as [http://shop.oreilly.com/product/9780596805531.do JavaScript: The Definitive Guide].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=QtScript&amp;diff=384&amp;oldid=prev</id>
		<title>LabRPS: Created page with &quot;LabRPS supports ECMAScript like dynamic scripting language, as defined in standard [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMA-262]. Microsoft&#039;s JScript, and Netscape&#039;s JavaScript are also based on the ECMAScript standard. For an overview of ECMAScript, see the [http://doc.qt.io/qt-5/ecmascript.html ECMAScript reference]. If you are not familiar with the ECMAScript language, there are several existing tutorials and books that cover this su...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=QtScript&amp;diff=384&amp;oldid=prev"/>
		<updated>2022-08-10T07:23:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;LabRPS supports ECMAScript like dynamic scripting language, as defined in standard [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMA-262]. Microsoft&amp;#039;s JScript, and Netscape&amp;#039;s JavaScript are also based on the ECMAScript standard. For an overview of ECMAScript, see the [http://doc.qt.io/qt-5/ecmascript.html ECMAScript reference]. If you are not familiar with the ECMAScript language, there are several existing tutorials and books that cover this su...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;LabRPS supports ECMAScript like dynamic scripting language, as defined in standard [http://www.ecma-international.org/publications/standards/Ecma-262.htm ECMA-262]. Microsoft&amp;#039;s JScript, and Netscape&amp;#039;s JavaScript are also based on the ECMAScript standard. For an overview of ECMAScript, see the [http://doc.qt.io/qt-5/ecmascript.html ECMAScript reference]. If you are not familiar with the ECMAScript language, there are several existing tutorials and books that cover this subject, such as [http://shop.oreilly.com/product/9780596805531.do JavaScript: The Definitive Guide].&lt;br /&gt;
&lt;br /&gt;
=Console Functions (not part of ECMAScript)=&lt;br /&gt;
&lt;br /&gt;
==attachDebugger(bool)==&lt;br /&gt;
&lt;br /&gt;
The debugger enables the application user to inspect the state of the script environment and control script execution. you can enable debugging mode at any point by issuing attachDebugger(true) and return to the normal running mode by issuing attachDebugger(false).&lt;br /&gt;
&lt;br /&gt;
==clear()==&lt;br /&gt;
&lt;br /&gt;
Clears the complete contents of the scripting console and leave only a user prompt.&lt;br /&gt;
&lt;br /&gt;
==collectGarbage()==&lt;br /&gt;
&lt;br /&gt;
The garbage collector will attempt to reclaim memory by locating and disposing of objects that are no longer reachable in the script environment. Normally you don&amp;#039;t need to call this function; the garbage collector will automatically be invoked when the LabRPS decides that it&amp;#039;s wise to do so. It is recommended to run this manually when you are done with large data objects.&lt;br /&gt;
&lt;br /&gt;
==print(argument1, argument2, ...)==&lt;br /&gt;
&lt;br /&gt;
prints the arguments to the console as formatted in the function. Note: if the console is in debugger mode all the print function output will be redirected to debugger console&lt;br /&gt;
&lt;br /&gt;
=Using with Table and Matrix=&lt;br /&gt;
&lt;br /&gt;
Scripting capability is mainly intended for Table/Matrix data manipulation. You can access the main LabRPS Application window as rps object inside QtScript.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    // Get pointer to Table with name &amp;quot;Table1&amp;quot; and stores it to the object variable tab&lt;br /&gt;
    tab = rps.getTableHandle(&amp;quot;Table1&amp;quot;)&lt;br /&gt;
           &lt;br /&gt;
    // get tab row count&lt;br /&gt;
    tab.rowCount()&lt;br /&gt;
           &lt;br /&gt;
    // get tab column count&lt;br /&gt;
    tab.colCount()  &lt;br /&gt;
           &lt;br /&gt;
    // set tab row count to 50&lt;br /&gt;
    tab.setRowCount(50)&lt;br /&gt;
           &lt;br /&gt;
    // set tab column count to 5&lt;br /&gt;
    tab.setColCount(5)&lt;br /&gt;
           &lt;br /&gt;
    // get tab value at row 1, column 1 position inside the table to variable val and print the value&lt;br /&gt;
    val = tab.getCell(1, 1)&lt;br /&gt;
    print(val)&lt;br /&gt;
           &lt;br /&gt;
    // set tab value at row 1, column 1 position inside the table to 0.897&lt;br /&gt;
    tab.setCell(1, 1, 0.897)&lt;br /&gt;
&lt;br /&gt;
    //Apply a muparser function &amp;quot;col(1)^2&amp;quot; to generate 2nd column values of table tab&lt;br /&gt;
    tab.applyFunction(2, &amp;quot;col(1)^2&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
    // Get pointer to Matix with name &amp;quot;Matrix1&amp;quot; and stores it to the object variable mat&lt;br /&gt;
    mat = rps.getMatrixHandle(&amp;quot;Matrix1&amp;quot;)&lt;/div&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
</feed>