Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is GETFILE() in VB.NET?
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Miscellaneous
Thread ID:
01189717
Message ID:
01189727
Views:
5
>What is the VB.NET equivalent of the Visual FoxPro Function GETFILE()?

Assuming you have the control loaded, this code will set up the default directory, filter on specific files and allows the user to select a file:
    ' File to execute if all Web Server processes are failing
    Private Sub LxButton1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LxButton1.Click
        OpenFileDialog.InitialDirectory = oApp.cStartupDirectory
        OpenFileDialog.Filter = "BAT Files (*.bat)|*.bat|All Files (*.*)|*.*"
        If OpenFileDialog.ShowDialog = System.Windows.Forms.DialogResult.OK Then
            ExecuteThisFileIfFailure.Text = OpenFileDialog.FileName
        End If
    End Sub
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform