Managed Dbf

Click here to edit subtitle


- STDB Assembly


  Table.Navigator.GoTop



- Command descriptions


Set or positions the record pointer to the topmost or the first record in the table which respect the index set order and show
deleted settings. If the table has an index set order in ascending settings, topmost record is the record with the lowest key value.
If the index set order is in descending mode, the topmost record is the record with the highest key value.



- Parameters and overloads

     

  GoTop( )



- Returns value


  void / none



- Example 
 
  // This example opens a customer database file, go to the topmost record and display customer's name on a message box,
  // close the table file and finally destroy customer object table.

  STDB.Table CUSTOMER = new STDB.Table();
  CUSTOMER.File.Use( @"\\MyServer\Data\FileMan\CUSTOMER.DBF", TableShare.Shared, TableAccess.ReadOnly, true );

  CUSTOMER.Navigator.GoTop();
  MessageBox.Show(  CUSTOMER.Reader.C("CUST_NAME")  );

  CUSTOMER.File.Use();
  CUSTOMER.Dispose(); CUSTOMER = null;


- Equivalent Visual FoxPro / Clipper / XBase codes

  USE \\MyServer\Data\FileMan\CUSTOMER.DBF  SHARED  NOUPDATE

  GO TOP
  Messagebox( CUSTOMER.cust_name ) 

  USE
  CLOSE DATABASE


- Unhandle exception error