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 - mspace() return the amount of free space in a memo http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 mspace()            Return the amount of free space in a memo
------------------------------------------------------------------------------
 Declaration
   memo.hdr

 Syntax
   func uint mspace extern
   param memo mMemoField

 Arguments
   mMemoField is the memo to operate on.

 Return
   Free space in the memo.

 Description
   The mspace() function returns the amount of free memory space in the
   memo field.

 Example
   #define EXAMPLE_DATABASE
   #include example.hdr

   proc Test_mspace
   open sTest                           // open database
   mopen( sTest->notes, MO_CREATE )     // open memo
   ? recno(), mspace( sTest->notes )    // print memo space
   append blank                         // add a new record
   mputln( sTest->notes, "new notes" )  // add memo
   ? recno(), mspace( sTest->notes )    // print decreased memo space
   mclose( sTest->notes )               // close memo
   endproc

   proc main
   Test_mspace()
   endproc

See Also: mexist()

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