pascalabcnet/PABCNetHelp/LangGuide/FuncProgramming/Files/JoinIntoString.html

15 lines
1,019 B
HTML

<html><head><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="Keyword" value="JoinIntoString">
</object><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><title></title><link rel="StyleSheet" href="../../../default.css"></head>
<body>
<H1>Ìåòîä JoinIntoString</H1><h2>Îïèñàíèå ìåòîäîâ</h2><p>Ìåòîäû ïðèâåäåíû äëÿ ïîñëåäîâàòåëüíîñòè <code><b>sequence of</b> T</code>.</p><table>
<tr><td>
<code><b>function </b>JoinIntoString(delim: string := ' '): string;</code>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ïðåîáðàçóåò ýëåìåíòû ïîñëåäîâàòåëüíîñòè â ñòðîêîâîå ïðåäñòàâëåíèå, ïîñëå ÷åãî îáúåäèíÿåò èõ â ñòðîêó, èñïîëüçóÿ delim â êà÷åñòâå ðàçäåëèòåëÿ.
</td></tr>
</table>
<h2>Ïðèìåð </h2><blockquote><code><strong>begin</strong><br>&nbsp; <strong>var</strong>
a := Arr('aaa','bbb','ccc');<br>&nbsp; <strong>var</strong> s: string :=
a.JoinIntoString('');<br>&nbsp; Println(s); // aaabbbccc<br><strong>end</strong>.</code></blockquote>
</body>