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 - memo memo field structure http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 memo                Memo field structure
------------------------------------------------------------------------------
 Syntax
   memo

 Arguments
   None.

 Features
   +----------------------------------------------------------------------+
   | Category             | special (database data)                       |
   | Size                 | N/A                                           |
   | Range                | N/A                                           |
   | Parameter: value     | no                                            |
   | Parameter: reference | yes                                           |
   | Parameter: const     | yes                                           |
   | Return               | no                                            |
   +----------------------------------------------------------------------+

 Description
   The memo datatype is for manipulating large text data stored
   in the memo fields of databases.

 Example
   #define EXAMPLE_DATATYPE
   #include example.hdr

   dbfdef sTest
      char( 15 ) name
      memo       notes                 // declare a memo field
   enddef
   
   proc MemoWrite
   param memo mMemo                    // memo as parameter
   mopen( mMemo, MO_CREATE )
   mputln( mMemo, "Hello world" )
   mclose( mMemo )
   endproc
   
   proc Test_memo
   build "stest.dbf" from alias sTest
   open sTest
   append blank
   MemoWrite( sTest->notes )
   erase "stest.dbf"
   erase "stest.dbt"
   endproc

   proc main
   Test_memo()
   endproc

See Also: alias

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