Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading A Combobox - With Code
Message
 
To
13/03/2003 21:15:32
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00765655
Message ID:
00765699
Views:
23
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"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform