Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - <b>sx_setmemoblock():</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Sx_SetMemoBlock():

  Syntax:   Sx_SetMemoBlock([nBlockSize])

            nBlockSize = Size of memo block (in bytes)

  Returns:   <numeric> Current memo block size setting.

  Description:    This function sets/returns the default memo block size
                  for .FPT/.SMT memo files.  This setting is used when
                  creating new tables that contain memo fields.

                  Valid block sizes are from 16 to 1024 bytes.

                  This function is used by the SET MEMOBLOCK TO command.

    NOTE:  This function is NOT supported under SIXNTX, or when using
           .DBT memo file under SIXCDX and/or SIXNSX by linking with
           the DBT.OBJ file.


  Example:

    /*
      This program demonstrates the creation of a new database with an .SMT
      memo file.
    */

    #include "SIXNSX.CH"

    // Display something on the screen
    ? "Creating MEMOTEST.DBF..."

    // Make the SIx Driver's SIXNSX flavor the default RDD
    RDDSetDefault("SIXNSX")

    //Set the memo block size to 32 bytes
    Sx_SetMemoBlock(32)

    // Create a new database with a memo field using modified block size
    dbCreate("MEMOTEST", {{ "LAST",    "C", 20, 0 }, ;
                          { "FIRST",   "C", 20, 0 }, ;
                          { "STREET",  "C", 30, 0 }, ;
                          { "CITY",    "C", 15, 0 }, ;
                          { "STATE",   "C",  2, 0 }, ;
                          { "BALANCE", "N",  8, 2 }, ;
                          { "NOTES",   "M", 10, 0 }})
    ?? "Done!"



See Also: SET MEMOBLOCK MEMOPACK Sx_MemoPack()

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