<div dir="ltr"><div><div>in the following code i want to detect independent of the type if the ref obj has a input text field and are empty.. <br><br></div>how can i do that?<br><br>Public Function required(objinput As Variant) As Variant<br><br>    If TypeOf(objinput) = gb.String Then<br>        If Comp(objinput, "", gb.IgnoreCase) = 0 Then<br>            Return "is empty"<br>        Endif<br>    Endif<br>    <br>    If TypeOf(objinput) = gb.Class Then<br>        If Comp(objinput.Text, "", gb.IgnoreCase) = 0 Then ' <--- here the problem!!!!<br>            Return "is empty"<br>        Endif<br>    Endif<br>    <br></div><div>    Return "is not empty? could not detect any input text"<br></div><div><br></div>end<br><div><div><div><br><br clear="all"><div><div class="gmail_signature"><font color="#888888">Lenz McKAY Gerardo (PICCORO)</font><div><font color="#888888"><a href="http://qgqlochekone.blogspot.com" target="_blank">http://qgqlochekone.blogspot.com</a></font></div></div></div>
</div></div></div></div>