home *** CD-ROM | disk | FTP | other *** search
- Option Explicit
- '
- ' Program Constants
- '
- '
- ' Application Wide Parameter Constants
- '
- Global Const PRA_DATABASE = 1 ' Database name
- '
- ' Form Level Parameter Constants
- '
- Global Const PRF_TABLE = 1 ' Database Table
- Global Const PRF_CRITERIA = 2 ' Search Criteria
- Global Const PRF_INDEX = 3 ' Position Index
- Global Const PRF_RESULT = 4 ' Search Results
- '
- ' Standard VB MsgBox Constants
- '
- Global Const MB_ICONEXCLAMATION = 48 ' Warning message
-
- Sub Main ()
- Dim sFileName As String
- App.Title = "Parameter Passing Demo Program"
- Do
- sFileName = Trim$(InputBox$("Enter the full path for BIBLIO.MDB", "Database Location", "C:\VB\BIBLIO.MDB"))
- If sFileName = "" Then
- Exit Do
- Else
- If IsFile(sFileName, ISFILE_API) Then
- SetAppParam sFileName, PRA_DATABASE
- Exit Do
- End If
- End If
- Loop
- If sFileName <> "" Then
- frmMain.Show
- End If
- End Sub
-
-