home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Product / Product.zip / WORDPRO6.EXE / LSCONST.LSZ / LSCONST.LSS
Text File  |  1994-08-03  |  5KB  |  107 lines

  1. '-----------------------------------------------------------------------------
  2. '    File:        LSCONST.LSS
  3. '    Module:    
  4. '    Author:    Jeff Crump
  5. '    Created:    April 9, 1993
  6. '
  7. '    Copyright (c) 1993 Lotus Development Corporation
  8. '
  9. '    Description: LotusScript Global Constants.
  10. '
  11. '    Revision History:
  12. '        10-22-93        jmc    Removed unnecessary items
  13. '        09-17-93        jmc    Added ATTR_MODE and ATTR_HANDLE
  14. '        04-09-93        jmc    Created.
  15. '-----------------------------------------------------------------------------
  16.  
  17. '-----------------------------------------------------------------------------
  18. ' Variant DataType Values
  19. '-----------------------------------------------------------------------------
  20.  
  21. Public Const V_EMPTY = 0                    ' Empty variant
  22. Public Const V_NULL = 1                        ' Variant containing Null
  23. Public Const V_INTEGER = 2                    ' Integer
  24. Public Const V_LONG = 3                        ' Long integer (4 bytes)
  25. Public Const V_SINGLE = 4                    ' Single
  26. Public Const V_DOUBLE = 5                    ' Double
  27. Public Const V_CURRENCY = 6                ' Currency
  28. Public Const V_DATE = 7                        ' Date value
  29. Public Const V_STRING = 8                    ' String
  30. Public Const V_DISPATCH = 9            ' OLE object
  31. Public Const V_ERROR = 10              ' ERROR (from OLE only)
  32. Public Const V_BOOLEAN = 11            ' BOOLEAN (from OLE only)
  33. Public Const V_VARIANT = 12            ' VARIANT array or list
  34. Public Const V_IUNKNOWN = 13           ' OLE unknown object
  35. Public Const V_LSOBJ = 34              ' LotusScript object
  36. Public Const V_PRODOBJ = 35            ' Product object
  37.  
  38. '-----------------------------------------------------------------------------
  39. ' MsgBox parameters
  40. '-----------------------------------------------------------------------------
  41.  
  42. Public Const MB_OK = 0                 ' OK button only
  43. Public Const MB_OKCANCEL = 1           ' OK and Cancel buttons
  44. Public Const MB_ABORTRETRYIGNORE = 2   ' Abort, Retry, and Ignore buttons
  45. Public Const MB_YESNOCANCEL = 3        ' Yes, No, and Cancel buttons
  46. Public Const MB_YESNO = 4              ' Yes and No buttons
  47. Public Const MB_RETRYCANCEL = 5        ' Retry and Cancel buttons
  48.  
  49. Public Const MB_ICONSTOP = 16          ' Critical message
  50. Public Const MB_ICONQUESTION = 32      ' Warning query
  51. Public Const MB_ICONEXCLAMATION = 48   ' Warning message
  52. Public Const MB_ICONINFORMATION = 64   ' Information message
  53.  
  54. Public Const MB_APPLMODAL = 0               ' Application Modal Message Box
  55. Public Const MB_DEFBUTTON1 = 0          ' First button is default
  56. Public Const MB_DEFBUTTON2 = 256       ' Second button is default
  57. Public Const MB_DEFBUTTON3 = 512       ' Third button is default
  58. Public Const MB_SYSTEMMODAL = 4096     ' System Modal
  59.  
  60. '-----------------------------------------------------------------------------
  61. ' MsgBox return values
  62. '-----------------------------------------------------------------------------
  63.  
  64. Public Const IDOK = 1                  ' OK button pressed
  65. Public Const IDCANCEL = 2              ' Cancel button pressed
  66. Public Const IDABORT = 3               ' Abort button pressed
  67. Public Const IDRETRY = 4               ' Retry button pressed
  68. Public Const IDIGNORE = 5              ' Ignore button pressed
  69. Public Const IDYES = 6                 ' Yes button pressed
  70. Public Const IDNO = 7                  ' No button pressed
  71.  
  72. '-----------------------------------------------------------------------------
  73. ' SetAttr, Dir, GetAttr functions
  74. '-----------------------------------------------------------------------------
  75.  
  76. Public Const ATTR_NORMAL = 0                ' Normal files
  77. Public Const ATTR_READONLY = 1            ' Read-only files
  78. Public Const ATTR_HIDDEN = 2                ' Hidden files
  79. Public Const ATTR_SYSTEM = 4                ' System-attribute set
  80. Public Const ATTR_VOLUME = 8                ' Volume label
  81. Public Const ATTR_DIRECTORY = 16            ' Directory
  82. Public Const ATTR_ARCHIVE = 32            ' Archive bit set 
  83.  
  84. '-----------------------------------------------------------------------------
  85. ' FileAttr function
  86. '-----------------------------------------------------------------------------
  87.  
  88. Public Const ATTR_MODE = 1                    ' Return mode of file (below)
  89. Public Const ATTR_HANDLE = 2                ' Return OS handle for file
  90.  
  91. Public Const ATTR_INPUT = 1                  ' File opened for Input mode
  92. Public Const ATTR_OUTPUT = 2                ' File opened for Output mode
  93. Public Const ATTR_RANDOM = 4                ' File opened for Random mode
  94. Public Const ATTR_APPEND = 8                ' File opened for Append mode
  95. Public Const ATTR_BINARY = 32                ' File opened for Binary mode
  96.  
  97. '-----------------------------------------------------------------------------
  98. ' Shell Window Style
  99. '-----------------------------------------------------------------------------
  100.  
  101. Public Const SHELL_NORMAL_FOCUS = 1        ' Normal, with focus
  102. Public Const SHELL_MIN_FOCUS = 2            ' Minimized, with focus (default)
  103. Public Const SHELL_MAX_FOCUS = 3            ' Maximized, with focus
  104. Public Const SHELL_NORMAL_NO_FOCUS = 4    ' Normal, no focus
  105. Public Const SHELL_MIN_NO_FOCUS = 6        ' Minimized, no focus
  106.  
  107.