Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - mputln() insert a line of text into a memo http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 mputln()            Insert a line of text into a memo
------------------------------------------------------------------------------
 Declaration
   memo.hdr

 Syntax
   proc mputln extern
   param       memo mMemoField, ;
         const char cText

 Arguments
   mMemoField is the memo to operate on.
   cText is the string to add to the memo.

 Return
   None.

 Description
   The mputln() procedure inserts cText into mMemoField. Carriage return
   and line-feed characters are prepended to the string.

   mMemoField must have been opened in either the MO_WRITE or MO_APPEND
   mode.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_mputln
   open sTest
   mopen( sTest->notes, MO_CREATE )
   mputln( sTest->notes, "First text" )
   mputln( sTest->notes, "Second text" )
   mclose( sTest->notes )
   ShowMemo( sTest->notes )
   endproc

   proc main
   Test_mputln()
   endproc

See Also: mgetln() mput()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson