A Date Display
This is just a little java script that can be used display the date in long form on a webpage. Ex: Thursday, January 03, 2002. Its nothing big, but someone asked for it so i thought i would share it with everyone.
AI
AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Source Code
Upload
Upload
''you must install odbc mysql 3.51 and odbc .net data provider
''1. create new windows application project
''2. add datagrid
''3. add private declaration after "Windows Form Designer generated code" region
Dim constring As String = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=host;DATABASE=database;UID=username;PASSWORD=password;OPTION=3;"
''4. creat procedure...
Private Sub refreshdb()
Dim mdata As New DataSet
Dim mcmd As Odbc.OdbcDataAdapter = New Odbc.OdbcDataAdapter("SELECT * FROM table1", constring)
mcmd.Fill(mdata, "apdset")
Me.DataGrid1.DataSource = mdata
End Sub
''5. on form load event add the procedure
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
refreshdb()
End Sub
'' hope it helps :)
Original Comments (3)
Recovered from Wayback Machine