home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / FOXPRO / FCT1_12 / FC_BASE.HDR < prev    next >
Text File  |  1990-10-08  |  2KB  |  115 lines

  1. #output Force Tools 1.1 - Database functions
  2.  
  3. *
  4. * select a database from an untyped pointer
  5. *
  6. procedure a_select prototype
  7.    params untyped alias_ptr
  8.  
  9. *************************************
  10. * Field_Count(<Alias>)
  11. *
  12. * Get the number of fields from a database
  13. *
  14. * Para 1 : Alias van de database
  15. *
  16. FUNCTION UINT Field_Count PROTOTYPE
  17.    PARAMS UNTYPED
  18.  
  19. *************************************
  20. * Field_Name(<Alias>, <Field_Number>)
  21. *
  22. * Get the name from a database field
  23. *
  24. * Para 1 : Alias
  25. * Para 2 : Field number
  26. *
  27. FUNCTION CHAR Field_Name PROTOTYPE
  28.    PARAMS UNTYPED, VALUE UINT
  29.    
  30. *************************************
  31. * Field_Type(<Alias>, <Field_Number>)
  32. *
  33. * Get the type from a database field
  34. *
  35. * Para 1 : Alias van de database
  36. * Para 2 : Field number
  37. *
  38. FUNCTION CHAR Field_Type PROTOTYPE
  39.    PARAMS UNTYPED, VALUE UINT   
  40.    
  41. *************************************
  42. * Field_Len(<Alias>, <Field_Number>)
  43. *
  44. * Get the length of a database field
  45. *
  46. * Para 1 : Alias van de database
  47. * Para 2 : Field number
  48. *
  49. FUNCTION UINT Field_Len PROTOTYPE
  50.    PARAMS UNTYPED, VALUE UINT
  51.  
  52. *************************************
  53. * Field_Dec(<Alias>, <Field_Number>)
  54. *
  55. * Get the decimal positions a database field
  56. *
  57. * Para 1 : Alias van de database
  58. * Para 2 : Field number
  59. *
  60. FUNCTION UINT Field_Dec PROTOTYPE
  61.    PARAMS UNTYPED, VALUE UINT
  62.  
  63. *************************************
  64. * Field_Value(<Alias>, <Field_Number>, <ExpX>)
  65. *
  66. * Get the contents of a database field, this reads the field from disk !
  67. *
  68. * Para 1 : Alias
  69. * Para 2 : Fieldnumber
  70. * Para 3 : Receiving var
  71. *
  72. FUNCTION CHAR Field_Value PROTOTYPE
  73.    PARAMS UNTYPED, VALUE UINT, UNTYPED
  74.    
  75. *********************
  76. * Alias_Name(<Alias>)
  77. *
  78. * Get the DOS name from a alias
  79. *
  80. FUNCTION CHAR Alias_Name PROTOTYPE
  81.    PARAMS UNTYPED
  82.    
  83. *********************
  84. * Is_Dbt(<Alias>)
  85. *
  86. * See if there is a memofield attached to the database
  87. *
  88. FUNCTION LOGICAL Is_Dbt PROTOTYPE
  89.    PARAMS UNTYPED
  90.    
  91. ***********************
  92. * Dbf_FileSize(<Alias>)
  93. *
  94. * Disk length of a database
  95. *
  96. FUNCTION ULONG Dbf_FileSize PROTOTYPE
  97.    PARAMS UNTYPED
  98.    
  99. ***********************
  100. * Index_Order(<Alias>)
  101. *
  102. * Return the current index number
  103. *
  104. FUNCTION UINT Index_Order PROTOTYPE
  105.    PARAMS UNTYPED
  106.    
  107. ***********************
  108. * Index_Order_Max(<Alias>)
  109. *
  110. * Get the maximun index number
  111. *
  112. FUNCTION UINT Index_Order_Max PROTOTYPE
  113.    PARAMS UNTYPED
  114.    
  115. * eof - fc_base.hdr