Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
Questiondimension array Pin
md_refay1-Mar-07 0:27
md_refay1-Mar-07 0:27 
AnswerRe: dimension array Pin
Martin#1-Mar-07 0:32
Martin#1-Mar-07 0:32 
QuestionBest way of generating a lookup table Pin
mail5723521-Mar-07 0:13
mail5723521-Mar-07 0:13 
AnswerRe: Best way of generating a lookup table Pin
Stefan Troschuetz1-Mar-07 0:47
Stefan Troschuetz1-Mar-07 0:47 
AnswerRe: Best way of generating a lookup table Pin
thowra1-Mar-07 22:29
thowra1-Mar-07 22:29 
QuestionReturning values Pin
scotlandc1-Mar-07 0:11
scotlandc1-Mar-07 0:11 
Questionasp.net for google map Pin
Member 387693428-Feb-07 23:37
Member 387693428-Feb-07 23:37 
Questionhow to check if object exists? Pin
arkiboys28-Feb-07 23:30
arkiboys28-Feb-07 23:30 
How is it possible if an object exists?
At present I have a code similar to this line:

//This retrieves the object...
objectData = MethodName(Name)

If the object does not exist, it goes to the catch statement.
How can I just check if it exists so that it does not go to the catch statement?
Something like:

if (MethodName(Name) not null)
{

}
else if (MethodName(Name) == null)
{

}

Thanks
AnswerRe: how to check if object exists? Pin
Sylvester george28-Feb-07 23:34
Sylvester george28-Feb-07 23:34 
GeneralRe: how to check if object exists? Pin
arkiboys28-Feb-07 23:37
arkiboys28-Feb-07 23:37 
GeneralRe: how to check if object exists? Pin
Sylvester george28-Feb-07 23:39
Sylvester george28-Feb-07 23:39 
GeneralRe: how to check if object exists? Pin
Tuwing.Sabado1-Mar-07 0:17
Tuwing.Sabado1-Mar-07 0:17 
AnswerRe: how to check if object exists? Pin
Martin#28-Feb-07 23:36
Martin#28-Feb-07 23:36 
GeneralRe: how to check if object exists? Pin
arkiboys28-Feb-07 23:38
arkiboys28-Feb-07 23:38 
GeneralRe: how to check if object exists? Pin
Martin#28-Feb-07 23:39
Martin#28-Feb-07 23:39 
AnswerRe: how to check if object exists? Pin
Stefan Troschuetz1-Mar-07 0:24
Stefan Troschuetz1-Mar-07 0:24 
QuestionCreateGraphics Pin
md_refay28-Feb-07 23:15
md_refay28-Feb-07 23:15 
AnswerRe: CreateGraphics Pin
Sylvester george28-Feb-07 23:36
Sylvester george28-Feb-07 23:36 
Questiondelegates Pin
Sunshine Always28-Feb-07 22:48
Sunshine Always28-Feb-07 22:48 
AnswerRe: delegates Pin
Stefan Troschuetz28-Feb-07 23:19
Stefan Troschuetz28-Feb-07 23:19 
Questionadd property to programatically created control Pin
vasu6628-Feb-07 22:37
vasu6628-Feb-07 22:37 
AnswerRe: add property to programatically created control Pin
sam#28-Feb-07 22:41
sam#28-Feb-07 22:41 
GeneralRe: add property to programatically created control Pin
vasu6628-Feb-07 22:53
vasu6628-Feb-07 22:53 
GeneralRe: add property to programatically created control Pin
vasu6628-Feb-07 22:54
vasu6628-Feb-07 22:54 
GeneralRe: add property to programatically created control Pin
Martin#28-Feb-07 23:07
Martin#28-Feb-07 23:07 

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.