<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.easyuo.com/index.php?action=history&amp;feed=atom&amp;title=Str_%28command%29</id>
		<title>Str (command) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.easyuo.com/index.php?action=history&amp;feed=atom&amp;title=Str_%28command%29"/>
		<link rel="alternate" type="text/html" href="http://wiki.easyuo.com/index.php?title=Str_(command)&amp;action=history"/>
		<updated>2026-04-30T13:44:39Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://wiki.easyuo.com/index.php?title=Str_(command)&amp;diff=5313&amp;oldid=prev</id>
		<title>Seg at 20:16, 13 October 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.easyuo.com/index.php?title=Str_(command)&amp;diff=5313&amp;oldid=prev"/>
				<updated>2007-10-13T20:16:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{command header|Miscellaneous}}&lt;br /&gt;
&lt;br /&gt;
{{body|&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Len&amp;quot;} {string}&amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Pos&amp;quot;} {string} {sub string} [index] &amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Left&amp;quot;} {string} {length} &amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Right&amp;quot;} {string} {length} &amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Mid&amp;quot;} {string} {start} {length} &amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Lower&amp;quot;} {string} &amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Ins&amp;quot;} {string} {sub string} {start} &amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Del&amp;quot;} {string} {start} {length} &amp;lt;/nowiki&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt; [[str]] {&amp;quot;Count&amp;quot;} {string} {substring} &amp;lt;/nowiki&amp;gt;|The [[str]] command performs a string operation on the string given and stores the result in #strRes.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| width=40px style=&amp;quot;background:#ffdead;&amp;quot; | Value || width=475px style=&amp;quot;background:#ffdead;&amp;quot; | Description&lt;br /&gt;
|-&lt;br /&gt;
| Len || Stores the length of the string in the #strRes system variable.&lt;br /&gt;
|-&lt;br /&gt;
| Pos || Stores the position of the sub string in the #strRes system variable. ''index'' tells which occurrence to return (if there's more than one).&lt;br /&gt;
|-&lt;br /&gt;
| Left || Stores a part of the string taken from the left, in the #strRes system variable.&lt;br /&gt;
|-&lt;br /&gt;
| Right || Stores a part of the string taken from the right, in the #strRes system variable.&lt;br /&gt;
|-&lt;br /&gt;
| Mid || Stores a part of the string taken from the middle, in the #strRes system variable.&lt;br /&gt;
|-&lt;br /&gt;
| Lower || Stores a lower case version of the string in the #strRes system variable.&lt;br /&gt;
|-&lt;br /&gt;
| Ins || Inserts a string into the string and stores it in the #strRes system variable.&lt;br /&gt;
|-&lt;br /&gt;
| Del || Deletes a part of the string and stores it in the #strRes system variable.&lt;br /&gt;
|-&lt;br /&gt;
| Count || Returns the number of occurrences of substring in string.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Note|&lt;br /&gt;
*Index parameter in Str Pos is only avalable from EUO 1.5 Test version 27.&lt;br /&gt;
*Str Count command is only avalable from EUO 1.5 Test version 27.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Example ====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
set %string HELLO&lt;br /&gt;
str Len %string     ; #strRes = 5&lt;br /&gt;
str Pos %string LL  ; #strRes = 3&lt;br /&gt;
str Left %string 4  ; #strRes = HELL&lt;br /&gt;
str Right %string 2 ; #strRes = LO&lt;br /&gt;
str Mid %string 2 3 ; #strRes = ELL&lt;br /&gt;
str Lower %string   ; #strRes = hello&lt;br /&gt;
str Ins %string I 3 ; #strRes = HELILO&lt;br /&gt;
str Del %string 3 2 ; #strRes = HEO&lt;br /&gt;
str Count %string L ; #strRes = 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
; This is a sample on how to use Str Count&lt;br /&gt;
; command and index parameter of Str Pos&lt;br /&gt;
; Made by Cheffe.&lt;br /&gt;
&lt;br /&gt;
set %test _this_is_a_test_and_tests_are_cool_&lt;br /&gt;
 &lt;br /&gt;
str count %test _&lt;br /&gt;
for %cnt #strres 2 &lt;br /&gt;
{ &lt;br /&gt;
  set %tmp %cnt - 1 &lt;br /&gt;
  str pos %test _ %tmp &lt;br /&gt;
  set %tmp #strres + 1 &lt;br /&gt;
  str pos %test _ %cnt &lt;br /&gt;
  set %len #strres - %tmp &lt;br /&gt;
  str mid %test %tmp %len &lt;br /&gt;
  display ok #strres &lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=See Also=&lt;br /&gt;
{{Miscellaneous}}&lt;/div&gt;</summary>
		<author><name>Seg</name></author>	</entry>

	</feed>