<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Кол-во строк]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9115&amp;type=atom" />
	<updated>2014-01-08T19:59:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9115</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кол-во строк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=79028#p79028" />
			<content type="html"><![CDATA[<p>Если в переменной возможны переводы строк в виде только carriage return, то я бы сделал так:<br /></p><div class="codebox"><pre><code>
Str = 1`r2`r3 
 
(Str = &quot;&quot;) ? (StrCount := 0) : (RegExReplace(Str, &quot;m`a)$&quot;, &quot;&quot;, StrCount))
MsgBox, % StrCount 
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-01-08T19:59:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=79028#p79028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кол-во строк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78929#p78929" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>YMP пишет:</cite><blockquote><div class="codebox"><pre><code>
StringReplace, Var, Var, `n, `n, UseErrorLevel
StrCount := ErrorLevel + 1
MsgBox, Строк %StrCount%
</code></pre></div></blockquote></div><p>Тогда ещё так:<br /></p><div class="codebox"><pre><code>MsgBox, % StrCount := StrSplit(Var, &quot;`n&quot;).MaxIndex()</code></pre></div><p><img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-01-06T04:45:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78929#p78929</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кол-во строк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78924#p78924" />
			<content type="html"><![CDATA[<p>Спасибо, то что мне нужно.</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2014-01-05T12:44:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78924#p78924</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Кол-во строк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78923#p78923" />
			<content type="html"><![CDATA[<p>Если вместе с пустыми, то так можно:<br /></p><div class="codebox"><pre><code>
StringReplace, Var, Var, `n, `n, UseErrorLevel
StrCount := ErrorLevel + 1
MsgBox, Строк %StrCount%
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2014-01-05T12:26:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78923#p78923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Кол-во строк]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=78920#p78920" />
			<content type="html"><![CDATA[<p>Вопрос такой, есть переменная а в ней содержится текст на несколько строк, так вот мне нужно как то узнать сколько же в этой переменной содержится строк.</p>]]></content>
			<author>
				<name><![CDATA[sergeiplugatyr]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30382</uri>
			</author>
			<updated>2014-01-05T08:21:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=78920#p78920</id>
		</entry>
</feed>
