=?Utf-8?B?TS4gVXBwYWw=?= said:
Here is my snipet of code that doesnot work
if (sObject[0] == null) {sLen = "0";} else {sLen =
sObject.Length.ToString();}
where sObject[0] has value of <undefined value>
What happens when you run it? Do you recieve the error or are you using the watch? The watch window
is sometimes not accurate and displays undefined when in fact it does have a value.
What type is sObject?
--
Chad Z. Hower (a.k.a. Kudzu) -
http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Get your ASP.NET in gear with IntraWeb!
http://www.atozed.com/IntraWeb/