Click here to Skip to main content
15,922,696 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralDeactivate floppy Disk Device Pin
monivong26-Mar-04 5:11
monivong26-Mar-04 5:11 
GeneralDeacivate floppy Disk Device Pin
monivong26-Mar-04 5:01
monivong26-Mar-04 5:01 
GeneralRe: Deacivate floppy Disk Device Pin
Dave Kreskowiak26-Mar-04 7:51
mveDave Kreskowiak26-Mar-04 7:51 
GeneralProperty description tooltip Pin
800XL26-Mar-04 3:56
800XL26-Mar-04 3:56 
GeneralRe: Property description tooltip Pin
Dave Kreskowiak26-Mar-04 4:19
mveDave Kreskowiak26-Mar-04 4:19 
QuestionHow do you insert a row at a time? Pin
hounetdev26-Mar-04 3:16
hounetdev26-Mar-04 3:16 
AnswerRe: How do you insert a row at a time? Pin
super_coding27-Mar-04 3:40
super_coding27-Mar-04 3:40 
GeneralRe: How do you insert a row at a time? Pin
Pradeep C27-Mar-04 5:09
Pradeep C27-Mar-04 5:09 
You can use a command object to update the rows in Dataset to the second Table in database.
'assume connString = Your connection string
Dim cn as new OledbConnection(connString)
Dim cmd as new OledbCommand
cmd.Connection = cn
cn.Open

dim i as integer

For i=0 to DataSet1.Tables(0).Rows.Count-1
cmd.CommandText = "INSERT INTO Table2 (Col1,Col2,Col3,..) VALUES (DataSet1.Tables(0).Rows(i).Item(1),DataSet1.Tables(0).Rows(i).Item(2),DataSet1.Tables(0).Rows(i).Item(3)....)
cmd.ExecuteNonQuery
Next

cn.Close
cmd.Dispose
cn.Dispose

"I think there is a world market for maybe 5 computers"
Thomas Watson, chairman of IBM, 1943

"There is no reason anyone would want a computer in their home"
Ken Olson, chairman & founder of Digital equipment, 1977

"This 'telephone' has too many shortcomings to be seriously considered as a means of communication. The device is ingerently of no value to us."
Western Union internal memo, 1876

"640 K ought to be enough for anybody."
Bill Gates, 1981

"Computers in the future may
AnswerRe: How do you insert a row at a time? Pin
Guerven30-Mar-04 1:58
Guerven30-Mar-04 1:58 
GeneralCreating PDF writer in .net Pin
DHARMA.R25-Mar-04 22:13
DHARMA.R25-Mar-04 22:13 
GeneralRe: Creating PDF writer in .net Pin
Dave Kreskowiak26-Mar-04 2:39
mveDave Kreskowiak26-Mar-04 2:39 
GeneralRe: Creating PDF writer in .net Pin
DHARMA.R26-Mar-04 4:03
DHARMA.R26-Mar-04 4:03 
Questionant algorithm with visual basic?? Pin
pahlawan_siber25-Mar-04 20:12
pahlawan_siber25-Mar-04 20:12 
AnswerRe: ant algorithm with visual basic?? Pin
Dave Kreskowiak26-Mar-04 2:43
mveDave Kreskowiak26-Mar-04 2:43 
Generalchanging code to add subs and to call on subs Pin
ibok2325-Mar-04 15:01
ibok2325-Mar-04 15:01 
GeneralRe: changing code to add subs and to call on subs Pin
ibok2325-Mar-04 15:09
ibok2325-Mar-04 15:09 
GeneralRe: changing code to add subs and to call on subs Pin
Nadroj25-Mar-04 18:14
Nadroj25-Mar-04 18:14 
GeneralRe: changing code to add subs and to call on subs Pin
ibok2326-Mar-04 2:55
ibok2326-Mar-04 2:55 
GeneralRe: changing code to add subs and to call on subs Pin
Dave Kreskowiak26-Mar-04 3:32
mveDave Kreskowiak26-Mar-04 3:32 
GeneralRe: changing code to add subs and to call on subs Pin
Dave Kreskowiak26-Mar-04 2:52
mveDave Kreskowiak26-Mar-04 2:52 
GeneralRe: changing code to add subs and to call on subs Pin
ibok2326-Mar-04 2:57
ibok2326-Mar-04 2:57 
GeneralRe: changing code to add subs and to call on subs Pin
ibok2326-Mar-04 4:36
ibok2326-Mar-04 4:36 
GeneralRe: changing code to add subs and to call on subs Pin
Nadroj26-Mar-04 4:47
Nadroj26-Mar-04 4:47 
GeneralRe: changing code to add subs and to call on subs Pin
ibok2326-Mar-04 5:09
ibok2326-Mar-04 5:09 
GeneralRe: changing code to add subs and to call on subs Pin
Nadroj26-Mar-04 6:45
Nadroj26-Mar-04 6:45 

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.