Click here to Skip to main content
15,895,864 members
Home / Discussions / Visual Basic
   

Visual Basic

 
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 
GeneralRe: Function does not return value on all code paths Pin
Pradeep Shamarao29-Apr-07 20:01
Pradeep Shamarao29-Apr-07 20:01 
AnswerRe: Function does not return value on all code paths Pin
Guffa29-Apr-07 8:03
Guffa29-Apr-07 8:03 
QuestionTooltip with a close button. Pin
udaykatakam28-Apr-07 19:34
udaykatakam28-Apr-07 19:34 
AnswerRe: Tooltip with a close button. Pin
kubben29-Apr-07 2:28
kubben29-Apr-07 2:28 
GeneralRe: Tooltip with a close button. Pin
udaykatakam29-Apr-07 17:27
udaykatakam29-Apr-07 17:27 
GeneralRe: Tooltip with a close button. Pin
Christian Graus29-Apr-07 18:03
protectorChristian Graus29-Apr-07 18:03 
AnswerRe: Tooltip with a close button. Pin
Arun.Immanuel29-Apr-07 4:45
Arun.Immanuel29-Apr-07 4:45 
GeneralRe: Tooltip with a close button. Pin
udaykatakam29-Apr-07 17:25
udaykatakam29-Apr-07 17:25 
GeneralRe: Tooltip with a close button. Pin
Arun.Immanuel29-Apr-07 18:02
Arun.Immanuel29-Apr-07 18:02 
QuestionCompile and Execute C/C++ using vb.net Pin
Senthil S28-Apr-07 16:49
Senthil S28-Apr-07 16:49 
AnswerRe: Compile and Execute C/C++ using vb.net Pin
Dave Kreskowiak28-Apr-07 17:02
mveDave Kreskowiak28-Apr-07 17:02 
AnswerRe: Compile and Execute C/C++ using vb.net Pin
Christian Graus28-Apr-07 17:03
protectorChristian Graus28-Apr-07 17:03 
QuestionCheck the Activation Status of Windows? Pin
GNX-Viper28-Apr-07 11:14
GNX-Viper28-Apr-07 11:14 
AnswerRe: Check the Activation Status of Windows? Pin
Dave Kreskowiak28-Apr-07 12:48
mveDave Kreskowiak28-Apr-07 12:48 
GeneralRe: Check the Activation Status of Windows? Pin
GNX-Viper28-Apr-07 13:16
GNX-Viper28-Apr-07 13:16 
QuestionWorking with the PDF OCX Pin
Nasty_p28-Apr-07 6:58
Nasty_p28-Apr-07 6:58 

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.