Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
'For Always-On-Top switches
Public Const conHwndTopmost = -1
Public Const conHwndNoTopmost = -2
Public Const conSwpNoActivate = &H10
Public Const conSwpShowWindow = &H40
Public Const SWP_NOMOVE = 2
Public Const SWP_NOSIZE = 1
Public Const FLAGS = SWP_NOMOVE Or SWP_NOSIZE Or conSwpNoActivate
Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Public f As frmMain
Public blnRecordFormOpen As Boolean
Public intVCount As Integer
Public gPropObject As Object 'object to show properties on
Public objApp As Object
Public sDatabaseName As String
Public sConnect As String
Public gsCriteria As String
Public gsTableName As String
Public gblnGraphicFound As Boolean
Public gblnRecordFound As Boolean
Type AttributeTypes
DatabaseName As String
ConnectString As String
RecordSource As String
Field As String
Record As String
End Type
Type Tables
TableName As String
TableHeading() As String
TableValue() As String
End Type
Public garrTables() As String
Public garrTableCollection() As Tables
Public gintTablesCount As Integer
Public gintTableCollectionCount As Integer
Public gDetachArray() As String
Public gstrAttributeSetsArray() As String
Public gobjDeleteAttributeSets As Object
Public gdbCurrentDB As Database
Public AttributeType As AttributeTypes
Type POINTAPI ' Stores location of cursor
x As Long
Y As Long
End Type
Global Const gnCTLARRAYHEIGHT = 340& '
Public gbFindFailed As Boolean
Public gbFromTableView As Boolean
Public mbNotFound As Boolean
Public gsFindOp As String
Public gsFindExpr As String
Public gnFindType As Integer
Public gsFindField As String
Global Const gnEOF_ERR = 626 '
Declare Sub GetCursorPos Lib "user32" (lpPoint As POINTAPI)
Declare Function GetActiveWindow Lib "user32" () As Long