Advertisement
C_Volume2 .JS files #80876

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サマリー: 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.

ソースコード
original-source
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 :)
オリジナルのコメント (3)
Wayback Machineから復元