Name SendToNotepad
Type Method
Summary Creates a notepad and sends text to it
Prototype boolean SendToNotepad(BSTR Title, BSTR Contents);
Description Creates a notepad window with the nominated title and contents.

The contents are copied "as is" without a trailing newline. If you want a newline you will need to add it yourself. The built-in constant "vbcrlf" can be used for this purpose in Visual Basic.
VBscript example
world.SendToNotepad "Nick's window", "Hello, world" & _
              vbcrlf & "another line"
Jscript example
world.SendToNotepad("Nick's window", 
                    "Hello, world\r\nanother line")
PerlScript example
$world->SendToNotepad("Nick's window", 
                  "Hello, world\r\nanother line");
Returns 0: Window not created.
1: Window created OK

See also ...