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 - -> alias assignment operator (binary) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ->                  Alias assignment operator (binary)
------------------------------------------------------------------------------
 Syntax
   sAlias->field

 Arguments
   sAlias is a database alias defined in a dbfdef block.

   field is the name of a field in the database.

 Description
   The -> operator accesses field information or evaluates an expression
   in the specified database alias.

 Example
   #define EXAMPLE_OPERATOR
   #include example.hdr

   dbfdef sTest
      char( 10 ) name
   enddef
   
   proc Test_911
   build "stest.dbf" from alias sTest     // create database
   open sTest                             // open database
   append blank
   sTest->name := "Virginia"              // assign field
   ? sTest->name                          // query field
   close all                              // clean up
   erase "stest.dbf"
   endproc

   proc main
   Test_911()
   endproc

See Also: field

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