Meet us at at Real World in Orlando, Florida.
All functions
Mac OS X
Windows
Crossplatform
Components
Guides
New in version:
2.0
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
String.ReplaceNewline
Component: String
Version: 2.4
Mac OS X: Works
Windows: Works
MBS( "String.ReplaceNewline"; Text; Mode )
Parameters
| Parameter | Description | Example value |
|---|---|---|
| Text | The text to process. | "Hello World" |
| Mode | The operation mode. First a value for the output newline type: 0 = nothing, 1 = CR (Mac), 2 = LF (Unix), 3 = CRLF (Windows). Second you can add 8 to remove duplicate newlines. |
Result
Text with modified newline characters.
Description
Replaces newline characters.Can remove, convert to Mac, Windows and Linux specific end of line characters. Also can remove duplicates.
Examples
Remove newlines from field:
MBS( "String.ReplaceNewline"; Test Database::TextField; 0 )
Replaces newlines from field with Mac newlines:
MBS( "String.ReplaceNewline"; Test Database::TextField; 1 )
Replaces newlines from field with Mac newlines and remove duplicates:
MBS( "String.ReplaceNewline"; Test Database::TextField; 1+8 )
Feedback: Report problem or ask question.
Links
MBS Realbasic Plugins - Pfarrgemeinde St. Arnulf Nickenich