Click here to Skip to main content
15,792,217 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: how to check correct answer in quiz Pin
Christian Graus6-Apr-08 12:13
protectorChristian Graus6-Apr-08 12:13 
QuestionRe: how to check correct answer in quiz Pin
bapu28897-Apr-08 9:19
bapu28897-Apr-08 9:19 
GeneralRe: how to check correct answer in quiz Pin
Christian Graus7-Apr-08 12:46
protectorChristian Graus7-Apr-08 12:46 
AnswerRe: how to check correct answer in quiz Pin
bapu28899-Apr-08 9:55
bapu28899-Apr-08 9:55 
QuestionHow to use link labels ? Pin
Meme_856-Apr-08 6:33
Meme_856-Apr-08 6:33 
GeneralRe: How to use link labels ? Pin
Christian Graus6-Apr-08 12:15
protectorChristian Graus6-Apr-08 12:15 
Questionhelp..save time Pin
Member 44429165-Apr-08 23:57
Member 44429165-Apr-08 23:57 
GeneralRe: help..save time Pin
Thomas Stockwell6-Apr-08 4:48
professionalThomas Stockwell6-Apr-08 4: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 21:08
vijaylumar5-Apr-08 21:08 
GeneralRe: combo selected index change event Pin
Chinners7-Apr-08 0:23
Chinners7-Apr-08 0:23 
QuestionStop/Start a service Pin
hassanasp5-Apr-08 17:04
hassanasp5-Apr-08 17:04 
GeneralRe: Stop/Start a service Pin
Christian Graus6-Apr-08 17:43
protectorChristian Graus6-Apr-08 17:43 
GeneralExcel Value to textbox [modified] Pin
Member 44350515-Apr-08 4:14
Member 44350515-Apr-08 4:14 
Questionsystem date format Pin
pathak785-Apr-08 3:25
pathak785-Apr-08 3:25 
GeneralRe: system date format Pin
Rajesh Anuhya5-Apr-08 3:34
professionalRajesh Anuhya5-Apr-08 3:34 
GeneralRe: system date format Pin
pathak785-Apr-08 3:42
pathak785-Apr-08 3:42 
GeneralRe: system date format Pin
darkelv5-Apr-08 7:29
darkelv5-Apr-08 7:29 
GeneralRe: system date format Pin
Mycroft Holmes5-Apr-08 18:35
professionalMycroft Holmes5-Apr-08 18:35 
GeneralUsing csv files Pin
Haim Nachum5-Apr-08 3:07
Haim Nachum5-Apr-08 3:07 
GeneralRe: Using csv files Pin
Rajesh Anuhya5-Apr-08 3:19
professionalRajesh Anuhya5-Apr-08 3:19 
GeneralRe: Using csv files Pin
Haim Nachum5-Apr-08 7:18
Haim Nachum5-Apr-08 7:18 
GeneralRe: Using csv files Pin
Dave Kreskowiak5-Apr-08 14:56
mveDave Kreskowiak5-Apr-08 14:56 
GeneralRe: Using csv files Pin
Luc Pattyn5-Apr-08 15:25
sitebuilderLuc Pattyn5-Apr-08 15:25 
GeneralSending ascii extended characters via serial port [modified] Pin
keninfo5-Apr-08 1:06
keninfo5-Apr-08 1:06 
AnswerRe: Sending ascii extended characters via serial port Pin
Rajesh Anuhya5-Apr-08 2:01
professionalRajesh Anuhya5-Apr-08 2: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.