Click here to Skip to main content
16,004,974 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionUpdate database from Datagrid Pin
matjame19-Nov-07 20:09
matjame19-Nov-07 20:09 
AnswerRe: Update database from Datagrid Pin
Alex Feature19-Nov-07 21:27
Alex Feature19-Nov-07 21:27 
GeneralRe: Update database from Datagrid Pin
matjame19-Nov-07 21:30
matjame19-Nov-07 21:30 
GeneralRe: Update database from Datagrid Pin
Vimalsoft(Pty) Ltd21-Nov-07 19:14
professionalVimalsoft(Pty) Ltd21-Nov-07 19:14 
Questionsaving into xml Pin
for120619-Nov-07 19:50
for120619-Nov-07 19:50 
AnswerRe: saving into xml Pin
Dave Kreskowiak21-Nov-07 4:58
mveDave Kreskowiak21-Nov-07 4:58 
QuestionInputbox () in Vb.net Pin
VB 8.019-Nov-07 19:30
VB 8.019-Nov-07 19:30 
AnswerRe: Inputbox () in Vb.net Pin
Johan Hakkesteegt20-Nov-07 2:21
Johan Hakkesteegt20-Nov-07 2:21 
The most basic thing you can do, is simply check the length before you assign the new text to the row or column header.

Current code is probably something like:
NewHeaderText = InputBox("blablabla")<br />
MyDataSet1.Tables(0).Columns(0).ColumnName = NewHeaderText


The alternative would be:
NewHeaderText = InputBox("blablabla")<br />
If NewHeaderText.Length > 0 Then<br />
MyDataSet1.Tables(0).Columns(0).ColumnName = NewHeaderText<br />
End If


This way you catch an empty string, whether the user actually tried this, or whether he pressed cancel.

Johan



My advice is free, and you may get what you paid for.

GeneralRe: Inputbox () in Vb.net Pin
for120620-Nov-07 18:23
for120620-Nov-07 18:23 
GeneralRe: Inputbox () in Vb.net Pin
Johan Hakkesteegt20-Nov-07 20:05
Johan Hakkesteegt20-Nov-07 20:05 
QuestionSystem.InvalidOperationException: Update unable to find TableMapping['Table'] or DataTable 'Table'. Pin
Piyush Vardhan Singh19-Nov-07 19:00
Piyush Vardhan Singh19-Nov-07 19:00 
AnswerRe: System.InvalidOperationException: Update unable to find TableMapping['Table'] or DataTable 'Table'. Pin
Dave Kreskowiak20-Nov-07 6:30
mveDave Kreskowiak20-Nov-07 6:30 
Question[Message Deleted] Pin
~V~19-Nov-07 18:25
~V~19-Nov-07 18:25 
AnswerRe: Need Your Guidance Pin
Vasudevan Deepak Kumar19-Nov-07 18:33
Vasudevan Deepak Kumar19-Nov-07 18:33 
AnswerRe: Need Your Guidance Pin
deathbat20-Nov-07 12:48
deathbat20-Nov-07 12:48 
AnswerRe: Need Your Guidance Pin
Christian Graus19-Nov-07 18:34
protectorChristian Graus19-Nov-07 18:34 
AnswerRe: Need Your Guidance Pin
DaveX8619-Nov-07 18:35
DaveX8619-Nov-07 18:35 
AnswerRe: Need Your Guidance Pin
~V~19-Nov-07 18:48
~V~19-Nov-07 18:48 
AnswerRe: Need Your Guidance Pin
Alex Feature19-Nov-07 21:56
Alex Feature19-Nov-07 21:56 
GeneralRe: Need Your Guidance Pin
~V~19-Nov-07 23:54
~V~19-Nov-07 23:54 
GeneralRe: Need Your Guidance Pin
Alex Feature20-Nov-07 1:15
Alex Feature20-Nov-07 1:15 
GeneralRe: Need Your Guidance Pin
~V~20-Nov-07 1:26
~V~20-Nov-07 1:26 
GeneralRe: Need Your Guidance Pin
Alex Feature20-Nov-07 1:53
Alex Feature20-Nov-07 1:53 
AnswerRe: Need Your Guidance Pin
GuyThiebaut20-Nov-07 1:06
professionalGuyThiebaut20-Nov-07 1:06 
GeneralRe: Need Your Guidance Pin
~V~20-Nov-07 1:22
~V~20-Nov-07 1:22 

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.