Click here to Skip to main content
15,895,746 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to check correct answer in quiz Pin
Christian Graus6-Apr-08 11:13
protectorChristian Graus6-Apr-08 11:13 
QuestionRe: how to check correct answer in quiz Pin
bapu28897-Apr-08 8:19
bapu28897-Apr-08 8:19 
GeneralRe: how to check correct answer in quiz Pin
Christian Graus7-Apr-08 11:46
protectorChristian Graus7-Apr-08 11:46 
AnswerRe: how to check correct answer in quiz Pin
bapu28899-Apr-08 8:55
bapu28899-Apr-08 8:55 
QuestionHow to use link labels ? Pin
Meme_856-Apr-08 5:33
Meme_856-Apr-08 5:33 
GeneralRe: How to use link labels ? Pin
Christian Graus6-Apr-08 11:15
protectorChristian Graus6-Apr-08 11:15 
Questionhelp..save time Pin
Member 44429165-Apr-08 22:57
Member 44429165-Apr-08 22:57 
GeneralRe: help..save time Pin
Thomas Stockwell6-Apr-08 3:48
professionalThomas Stockwell6-Apr-08 3:48 
SQL statements are weird in .NET. You have to request insert commands from the adapter and it becomes a hassle. Here is a working example of what you need to do to create a new row in SQL:

<br />
        Dim strTopic As String = InputBox("Enter a topic")<br />
        Dim sql As String = "SELECT ID, CourseID, Topic FROM tblTopics WHERE ID = 0"<br />
        Dim da As New OleDbDataAdapter(sql, cn)<br />
        Dim ds As New DataSet<br />
        da.Fill(ds)<br />
        Dim cmdbuilder As New OleDbCommandBuilder(da)<br />
        da.InsertCommand = cmdbuilder.GetInsertCommand<br />
        Dim dr As DataRow = ds.Tables(0).NewRow<br />
        dr("CourseID") = Me.lngCourseID(Me.cboCourse.SelectedIndex)<br />
        dr("Topic") = strTopic<br />
        ds.Tables(0).Rows.Add(dr)<br />
        da.Update(ds)<br />
        cn.Close()<br />


Regards,
Thomas Stockwell

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

Visit my homepage Oracle Studios[^]

Questioncombo selected index change event Pin
vijaylumar5-Apr-08 20:08
vijaylumar5-Apr-08 20:08 
GeneralRe: combo selected index change event Pin
Chinners6-Apr-08 23:23
Chinners6-Apr-08 23:23 
QuestionStop/Start a service Pin
hassanasp5-Apr-08 16:04
hassanasp5-Apr-08 16:04 
GeneralRe: Stop/Start a service Pin
Christian Graus6-Apr-08 16:43
protectorChristian Graus6-Apr-08 16:43 
GeneralExcel Value to textbox [modified] Pin
Member 44350515-Apr-08 3:14
Member 44350515-Apr-08 3:14 
Questionsystem date format Pin
pathak785-Apr-08 2:25
pathak785-Apr-08 2:25 
GeneralRe: system date format Pin
Rajesh Anuhya5-Apr-08 2:34
professionalRajesh Anuhya5-Apr-08 2:34 
GeneralRe: system date format Pin
pathak785-Apr-08 2:42
pathak785-Apr-08 2:42 
GeneralRe: system date format Pin
darkelv5-Apr-08 6:29
darkelv5-Apr-08 6:29 
GeneralRe: system date format Pin
Mycroft Holmes5-Apr-08 17:35
professionalMycroft Holmes5-Apr-08 17:35 
GeneralUsing csv files Pin
Haim Nachum5-Apr-08 2:07
Haim Nachum5-Apr-08 2:07 
GeneralRe: Using csv files Pin
Rajesh Anuhya5-Apr-08 2:19
professionalRajesh Anuhya5-Apr-08 2:19 
GeneralRe: Using csv files Pin
Haim Nachum5-Apr-08 6:18
Haim Nachum5-Apr-08 6:18 
GeneralRe: Using csv files Pin
Dave Kreskowiak5-Apr-08 13:56
mveDave Kreskowiak5-Apr-08 13:56 
GeneralRe: Using csv files Pin
Luc Pattyn5-Apr-08 14:25
sitebuilderLuc Pattyn5-Apr-08 14:25 
GeneralSending ascii extended characters via serial port [modified] Pin
keninfo5-Apr-08 0:06
keninfo5-Apr-08 0:06 
AnswerRe: Sending ascii extended characters via serial port Pin
Rajesh Anuhya5-Apr-08 1:01
professionalRajesh Anuhya5-Apr-08 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.