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>varifields (tm):</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  VariFields (tm):

  Under SIx 2.0 the term VariField referred primarily to ability to
  store and retrieve variable data types into a MEMO field.  For  example,
  an array stored in MEMO field would return "A" from Clipper's ValType()
  function.  This concept is still supported in SIx 3.0.


  Variable Data Type Storage:

  Besides being able to store arrays into FPT/SMT memo files, the SIx Driver
  also allows you store any Clipper data type (except code-blocks) into
  an FPT/SMT memo field.  This includes numeric, logical, and date values.
  Of course character values are supported as always!

  The neat thing is, for the particular record that you're on at the time,
  the type of that memo field will depend on what data type was stored in
  it.  By default, if nothing at all or plain text is stored in the memo
  field, Clipper's ValType() function returns "M".  However, after storing a
  different data type in the memo field, the ValType() return value for that
  particular record will reflect the value that was stored.  For example:


    // Assuming TEST.DBF has a memo field called NOTES

    USE test VIA "SIXNSX"
    ? ValType( test->NOTES )     // "M"

    test->NOTES := Date()        // Store a date value into the NOTES field
    ? ValType( test->NOTES )     // "M"

    test-NOTES := 1000           // Store a numeric value into NOTES
    ? ValType( test->NOTES )     // "N"

    test->NOTES := .T.           // Store a logical value into NOTES
    ? ValType( test->NOTES )     // "L"

    test->NOTES := { 1, 2, 3 }   // Store an array into NOTES
    ? ValType( test->NOTES )     // "A"

    test->NOTES := "Testing..."  // Store plain text into NOTES
    ? ValType( test->NOTES )     // "M"


  Variable Length Fields:

  In SIx 3.0, a new field type -- 'V' -- has been added.  There are
  weakly-typed and strongly-typed VariFields.

  Depending on the structure and content on your particular database
  file(s), it's possible to cut the size of your data files in half using
  "V" fields.  The OTTO.EXE utility can assist you in converting your
  existing database files to store data more efficiently using 'V' fields.


See Also: Using VariField 'V' Field Types The OTTO Utility Array storage in FPT/SMT memo fields

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