Mioplanet Documentation Center
Resources and Help
HomeProductsMioScriptJavaScriptTechNotesPHP
   Home | MioScript | str.wrapText SEARCH    

  Functions
str.adjustLineBreaks
str.char
str.comma
str.escape
str.explode
str.implode
str.left
str.len
str.lower
str.pos
str.pos.ex
str.replace
str.right
str.sub
str.trim
str.unescape
str.upper
str.wrapText

  MioScript Reference
> Statements
app...
browser...
dialog...
disk...
draw...
extern...
filename...
keyboard...
menu...
mio...
mouse...
num...
path...
pushButton...
reg...
RS232...
sci...
screen...
shortcut...
sound...
str...
system...
time...
var...
window...

Function
str.wrapText

Language: MioScript
Product: MioFactory


Syntax

str.wrapText(sourceString, Separator, MaxCols)


Parameters

STRINGsourceStringSource string.
STRINGSeparatorOptional.
Break String.
Default is carriage return/line feed pair.
INTMaxColsMaximum line length.


Return value

String with lines breaks.



Description

Scans a string to insert a line break or any other specified character or string so each line is not longer than the specified value (MaxCols).

The function does not insert a break into an embedded single or double quoted string.




MioScript Sample Code

str.wrapText("Hello, World", null, 10)