Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is GETFILE() in VB.NET?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01189717
Message ID:
01189727
Vues:
6
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform