<HTML><BODY STYLE="font:10pt verdana; border:none;"><DIV>If it returns <STRONG>[object]</STRONG></DIV> <DIV>It is existant but maybe it has'nt properties</DIV> <DIV>try to read its content and get to know what is it by doing this in the proces of the problem point; insert: </DIV> <DIV><STRONG></STRONG>&nbsp;</DIV> <DIV><STRONG>var whatsThisObject = "" + nameID.substring(nameID.length - nameID.length, nameID.length)</STRONG></DIV> <DIV><STRONG>alert(whatsThisObject)<BR></STRONG></DIV> <DIV>(! do not omit the: ""&nbsp; !)-it is done to get sure that we get it&nbsp;as a string</DIV> <DIV>&nbsp;</DIV> <DIV>This way you will get anything on that object in a string displayed in the alert box;</DIV> <DIV>if it has any content or name it can be read in alrt box.</DIV> <DIV>&nbsp;</DIV> <DIV>If "undefined", "null" or "&nbsp;&nbsp;&nbsp;" empty, that means that the objects are anihilated at that point of randevouz</DIV> <DIV>"Two identical beigns can not&nbsp;egzist in the same time and in the same space"</DIV> <DIV>My advise is, -try to avoid redoundacy in naming <EM>var</EM>s. Even global variable can be mixed with the value of the local variable</DIV> <DIV>in practice local variable assingns the new value to the global variable if they share the same name douring time that the function is executed</DIV> <DIV>the can even get anihilated, or asimilate into one, depends which one takes it all.</DIV> <DIV>&nbsp;</DIV> <DIV>Hope this helps to solve you're problem more faster.</DIV> <DIV>Cheers</DIV> <DIV>&nbsp;</DIV> <DIV><BR>&nbsp;</DIV> <BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt Arial">----- Original Message -----</DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt Arial; FONT-COLOR: black"><B>From:</B>&nbsp;Andrew Dunn</DIV> <DIV style="FONT: 10pt Arial"><B>Sent:</B>&nbsp;Thursday, May 17, 2001 6:49 AM</DIV> <DIV style="FONT: 10pt Arial"><B>To:</B>&nbsp;javascript@LaTech.edu</DIV> <DIV style="FONT: 10pt Arial"><B>Subject:</B>&nbsp;[Javascript] typeof</DIV> <DIV><BR></DIV> <META content="MSHTML 5.50.4522.1800" name=GENERATOR> <DIV><SPAN class=500375004-17052001><FONT face=verdana>Hi,</FONT></SPAN></DIV> <DIV><SPAN class=500375004-17052001>&nbsp;&nbsp; I have a variable called nameID. This variable holds the name of another variable which is an array. Sometimes the variable that is held in nameID is non-exsistent ie. "undefined". How can I test this?</SPAN></DIV> <DIV><SPAN class=500375004-17052001></SPAN>&nbsp;</DIV> <DIV><SPAN class=500375004-17052001><FONT face=verdana>I've tried typeof(eval(nameID))) but that returns "object". I need a way to see whether the variable that is held in nameID is exsistent. Can anyone help me?</FONT></SPAN></DIV> <DIV><SPAN class=500375004-17052001></SPAN>&nbsp;</DIV> <DIV><SPAN class=500375004-17052001><FONT face=verdana>Thank you.</FONT></SPAN></DIV> <DIV><SPAN class=500375004-17052001></SPAN>&nbsp;</DIV> <DIV><SPAN class=500375004-17052001><FONT face=verdana>Andrew Dunn.</FONT></SPAN></DIV> <DIV></DIV></BLOCKQUOTE></BODY></HTML><DIV><BR><br clear=all><hr>Get Your Private, Free E-mail from MSN Hotmail at <a href="http://www.hotmail.com">http://www.hotmail.com</a>.<br></p></DIV>