Visual Basic 6 Code
Functions/Procedures
InQuotes Function
PauseTime Proc.
Remove Invld Chr Function
Database Insert Proc.
Database Select Function
Database Delete Proc.
Database Update Function
Make Enter key to act as TAB
Time calculation
Change 1st char to Ucase
Populate MSFlxGrid with db data
How to use CASE
Save file
Open file
Populate TreeView w/database
Catch RDO Error
Open file
'****************************************************************** '* Value(s)passed: ..... '* Value(s)returned: ..... '* Date: 10-12-2005 '* Author: Ahmad E. Ashparie '* ___________________________________________ '* Modification Log '* Date Author Description '* ------ -------- ------------- '* '******************************************************************* Public Sub OpenFile() Dim strOpen As String ' Set CancelError is True frmShowDB_Code2.dlgOpenFile.CancelError = True On Error GoTo ErrHandler ' Set flags frmShowDB_Code2.dlgOpenFile.Flags = cdlOFNHideReadOnly frmShowDB_Code2.dlgOpenFile.DialogTitle = "MyApp - SQL OpenFile Utilities" ' Set filters frmShowDB_Code2.dlgOpenFile.Filter = "All Files (*.*)|*.*|Text Files" & _ "(*.txt)|*.txt|SQL Files (*.sql)|*.sql" ' Specify default filter frmShowDB_Code2.dlgOpenFile.FilterIndex = 3 ' Display the Open dialog box frmShowDB_Code2.dlgOpenFile.ShowOpen strOpen = frmShowDB_Code2.dlgOpenFile.FileName ErrHandler: 'User pressed the Cancel button Exit Sub End Sub
-
HOME
|
ABOUT
|
CONTACT US
Copyright © 2009 ASP-VBCode