Click here to Skip to main content
16,005,339 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Embedding Javascript in ASP Pin
jase7629-Apr-07 20:27
jase7629-Apr-07 20:27 
QuestionHOw to use Shared Event Handler? Pin
braleping29-Apr-07 16:26
braleping29-Apr-07 16:26 
Questionhow to use Share Event Handler? Pin
braleping29-Apr-07 16:10
braleping29-Apr-07 16:10 
Questionstring manipulation Pin
uglyeyes29-Apr-07 13:44
uglyeyes29-Apr-07 13:44 
AnswerRe: string manipulation Pin
Colin Angus Mackay29-Apr-07 14:13
Colin Angus Mackay29-Apr-07 14:13 
AnswerRe: string manipulation Pin
Christian Graus29-Apr-07 14:53
protectorChristian Graus29-Apr-07 14:53 
GeneralRe: string manipulation Pin
uglyeyes29-Apr-07 16:10
uglyeyes29-Apr-07 16:10 
GeneralRe: string manipulation Pin
Christian Graus29-Apr-07 17:28
protectorChristian Graus29-Apr-07 17:28 
AnswerRe: string manipulation Pin
Arun.Immanuel29-Apr-07 16:37
Arun.Immanuel29-Apr-07 16:37 
GeneralRe: string manipulation Pin
uglyeyes29-Apr-07 17:29
uglyeyes29-Apr-07 17:29 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 18:14
Arun.Immanuel29-Apr-07 18:14 
GeneralRe: string manipulation Pin
Christian Graus29-Apr-07 18:31
protectorChristian Graus29-Apr-07 18:31 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 18:59
Arun.Immanuel29-Apr-07 18:59 
GeneralRe: string manipulation Pin
Arun.Immanuel29-Apr-07 19:15
Arun.Immanuel29-Apr-07 19:15 
GeneralRe: string manipulation Pin
uglyeyes1-May-07 18:48
uglyeyes1-May-07 18:48 
QuestionSerialize WIndows Form Pin
milan.net29-Apr-07 8:57
milan.net29-Apr-07 8:57 
AnswerRe: Serialize WIndows Form Pin
Christian Graus29-Apr-07 11:18
protectorChristian Graus29-Apr-07 11:18 
QuestionIf statment problem Pin
aerosmith2k129-Apr-07 7:39
aerosmith2k129-Apr-07 7:39 
AnswerRe: If statment problem Pin
Christian Graus29-Apr-07 11:22
protectorChristian Graus29-Apr-07 11:22 
AnswerRe: If statment problem Pin
Navneet Hegde29-Apr-07 22:15
Navneet Hegde29-Apr-07 22:15 
GeneralRe: If statment problem Pin
aerosmith2k130-Apr-07 1:51
aerosmith2k130-Apr-07 1:51 
QuestionWindows Genuine Advantage (WGA) check in my own app Pin
sereby@gmail.com29-Apr-07 6:12
sereby@gmail.com29-Apr-07 6:12 
AnswerRe: Windows Genuine Advantage (WGA) check in my own app Pin
Dave Kreskowiak29-Apr-07 7:17
mveDave Kreskowiak29-Apr-07 7:17 
QuestionFunction does not return value on all code paths [modified] Pin
Pradeep Shamarao29-Apr-07 4:44
Pradeep Shamarao29-Apr-07 4:44 
Hi,

I am using a simple function which returns a dataset. I get a warning that function does not return value on all code paths.Normally i just say throw in the catch block, which solves the problem.
But as i am implementing enterprise exception block the suggestion is to use a policy with if(rethrow) statement, which i beleive creates the warning as throw is hidden inside if statement. I can say return nothing at the end of catch but i was wondering
What is the best way to get rid of the warning.

Public Function SearchEscalationMails() As DataSet
Try

Dim dbResourcePlanning As Database = DatabaseFactory.CreateDatabase()

Dim strProcName As String = "SearchMailEscalations"
Dim dbSPCommand As DbCommand = dbResourcePlanning.GetStoredProcCommand (strProcName)

dbResourcePlanning.ExecuteDataSet(dbSPCommand)

Return dbResourcePlanning.ExecuteDataSet(dbSPCommand)

Catch ex As Exception
Dim bRethrow As Boolean
bRethrow = ExceptionPolicy.HandleException(ex, "BusinessLayerPolicy")
If (bRethrow) Then
Throw
End If
End Try

End Function


-- modified at 10:49 Sunday 29th April, 2007
AnswerRe: Function does not return value on all code paths Pin
kubben29-Apr-07 5:37
kubben29-Apr-07 5:37 

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.