<turbo-stream action="update" target="wiki_card"><template>

<h1>PREPEND</h1>
<div class="trix-content"><h1>PREPEND(data, substring);</h1>
<p>Formula used in e.g. Axapta and XAL to where certain values are prepended with blanks.</p>
<p>&nbsp;</p>
<p><strong>Example 1:</strong></p>
<blockquote>
<p>##PREPEND("NAME",' ',30)</p>
<p>Will insert blanks in front of the Name until total length is 30.</p>
<p><br>If "NAME" has the value "Mr. John Doe" it will return the result " &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Mr. John Doe".<br>You can Prepend with any single character you want.</p>
<p>&nbsp;</p>
</blockquote>
<p><strong>Example 2:</strong></p>
<blockquote>
<p>##PREPEND("NAME",'x',30)<br>Will insert x's in front of the Name until total length is 30.</p>
<p><br>If "NAME" has the value "Mr. John Doe" it will return the result "xxxxxxxxxxxxxxxxxxMr. John Doe".</p>
</blockquote></div>
</template></turbo-stream>

