Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loading A Combobox - With Code
Message
 
À
13/03/2003 21:15:32
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00765655
Message ID:
00765699
Vues:
22
I gave up and went to the VFPTOOLKIT...wow, it all worked.

New Code:
       'Create a Connection
        Dim oConn As System.Data.OleDb.OleDbConnection
        oConn = SqlConnect(gcConnString)


        Dim lcSQL As String
        lcSQL = "Select deptdesc,deptid from coDept where isactive=1 order by Deptdesc"
        Dim goView As New Data.DataView()

        goView = VFPToolkit.vfpData.SqlExecute(oConn, lcSQL, "Departments")

        Me.ComboBox1.DataSource = goView
        Me.ComboBox1.DisplayMember = "deptdesc"
        Me.ComboBox1.ValueMember = "deptid"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform