Click here to Skip to main content
15,913,130 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Stupid remarks by stupid people who are an MVP Pin
leppie20-Sep-09 19:37
leppie20-Sep-09 19:37 
GeneralRe: Stupid remarks by stupid people who are an MVP [modified] Pin
mustang8620-Sep-09 20:33
mustang8620-Sep-09 20:33 
GeneralRe: Stupid remarks by stupid people who are an MVP Pin
mustang8620-Sep-09 20:53
mustang8620-Sep-09 20:53 
QuestionProbably somting simple would like some help please Thanks Pin
Bob Beaubien20-Sep-09 7:59
Bob Beaubien20-Sep-09 7:59 
AnswerRe: Probably somting simple would like some help please Thanks Pin
Andy_L_J20-Sep-09 8:17
Andy_L_J20-Sep-09 8:17 
GeneralRe: Probably somting simple would like some help please Thanks Pin
Bob Beaubien20-Sep-09 8:21
Bob Beaubien20-Sep-09 8:21 
GeneralRe: Probably somting simple would like some help please Thanks Pin
Andy_L_J20-Sep-09 8:30
Andy_L_J20-Sep-09 8:30 
AnswerRe: Probably somting simple would like some help please Thanks Pin
Johan Hakkesteegt21-Sep-09 0:39
Johan Hakkesteegt21-Sep-09 0:39 
Also, 2 things just for your information:
1. like Andy_L_J already implied, you should use a function when you want the code to return some value. For example:
MsgBox("Half of 11 is " & Half_Is(11))

Private Function Half_Is(ByVal MyNumber As Double) As Double
        Return MyNumber / 2
End Function

Otherwise use a sub.

2. When you write a function or sub, you do not need to explicitly tell the code to exit the function or sub at the end, nor in the catch clause (that is why you got the green squiggly line). Your code will exit there anyway.
Use Exit Function or Exit Sub somewhere in the middle, and only when you don't want the rest of the function's or sub's code to be executed.

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

GeneralRe: Probably somting simple would like some help please Thanks Pin
Bob Beaubien21-Sep-09 7:42
Bob Beaubien21-Sep-09 7:42 
GeneralRe: Probably somting simple would like some help please Thanks Pin
Johan Hakkesteegt21-Sep-09 7:46
Johan Hakkesteegt21-Sep-09 7:46 
GeneralRe: Probably somting simple would like some help please Thanks Pin
Bob Beaubien21-Sep-09 7:52
Bob Beaubien21-Sep-09 7:52 
GeneralRe: Probably somting simple would like some help please Thanks Pin
Johan Hakkesteegt21-Sep-09 19:53
Johan Hakkesteegt21-Sep-09 19:53 
GeneralRe: Probably somting simple would like some help please Thanks Pin
Bob Beaubien22-Sep-09 5:02
Bob Beaubien22-Sep-09 5:02 
GeneralRe: Probably somting simple would like some help please Thanks Pin
Johan Hakkesteegt22-Sep-09 21:56
Johan Hakkesteegt22-Sep-09 21:56 
QuestionCopy one Datagridview items into another Datagridview!! Pin
jeshra27919-Sep-09 21:47
jeshra27919-Sep-09 21:47 
AnswerRe: Copy one Datagridview items into another Datagridview!! Pin
Andy_L_J19-Sep-09 22:32
Andy_L_J19-Sep-09 22:32 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27919-Sep-09 22:56
jeshra27919-Sep-09 22:56 
GeneralRe: Copy one Datagridview items into another Datagridview!! [modified] Pin
Andy_L_J19-Sep-09 23:26
Andy_L_J19-Sep-09 23:26 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27919-Sep-09 23:44
jeshra27919-Sep-09 23:44 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27920-Sep-09 0:40
jeshra27920-Sep-09 0:40 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
Andy_L_J20-Sep-09 1:03
Andy_L_J20-Sep-09 1:03 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27920-Sep-09 1:34
jeshra27920-Sep-09 1:34 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
Andy_L_J20-Sep-09 2:09
Andy_L_J20-Sep-09 2:09 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
jeshra27920-Sep-09 3:24
jeshra27920-Sep-09 3:24 
GeneralRe: Copy one Datagridview items into another Datagridview!! Pin
Andy_L_J20-Sep-09 8:17
Andy_L_J20-Sep-09 8:17 

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.