Jaytron619 / github-slideshow

A robot powered training repository :robot:
https://lab.github.com/githubtraining/introduction-to-github
MIT License
0 stars 0 forks source link

Vb.vb #2

Open Jaytron619 opened 2 years ago

Jaytron619 commented 2 years ago

Public Function getListOfMotonum() As List(Of String) Dim SQL As String = "SELECT motonum FROM moto"

Dim output As New List(Of String)()

' Set the connection string in the Solutions Explorer/Properties/Settings object (double-click)
Using cn = New SqlConnection(Properties.Settings.[Default].MyConnectionString)
    Using cmd = New SqlCommand(SQL, cn)
        cn.Open()

        Try
            Dim dr = cmd.ExecuteReader()
            While dr.Read()
                output.Add(dr("motonum").ToString())
            End While
        Catch e As SqlException
            ' Do some logging or something. 
            MessageBox.Show("There was an error accessing your data. DETAIL: " & e.ToString())
        End Try
    End Using
End Using

Return output

End Function

github-learning-lab[bot] commented 2 years ago

Step 2: Turn on GitHub Pages

:tada: You're now the proud manager of this issue! Now that you've assigned yourself, people who drop by know that they're welcome to participate, but you'll be carrying this issue across the finish line. :sunglasses:.

Let's use GitHub Pages

Now, on to business! GitHub Pages allow you to serve a static site from a repository. We've filled this repository with some site content, but the rendered site isn't visible right now. Let's change that.

:keyboard: Activity: Enable GitHub Pages

  1. Click on the Settings tab in this repository
  2. Scroll down to the "GitHub Pages" section
  3. From the "Source" drop down, select master branch

Note: Even though you'll see an option to choose a theme, do not apply a theme at this point. We've protected the code so you can't make unintended changes. You'll have the opportunity to apply a theme when the course is completed.


I'll respond in this issue when I detect GitHub Pages has deployed your site.

Turning on GitHub Pages creates a deployment of your repository. I may take up to a minute to respond as I await the deployment.