<div dir="ltr"><div>You haven't declared the "cl" as class, as Vuott advice you to do,</div><div><br></div><div><br></div><div>Jussi<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 6, 2018 at 10:40 PM, PICCORO McKAY Lenz <span dir="ltr"><<a href="mailto:mckaygerhard@gmail.com" target="_blank">mckaygerhard@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">dont work, said: Unkown symbol "symbols"<br>
<br>
it's a control! i must detect first if the object its a control! how to do?<br>
<span class="im HOEnZb"><br>
<br>
Lenz McKAY Gerardo (PICCORO)<br>
<a href="http://qgqlochekone.blogspot.com" rel="noreferrer" target="_blank">http://qgqlochekone.blogspot.<wbr>com</a><br>
<br>
<br>
</span><div class="HOEnZb"><div class="h5">2018-06-27 19:09 GMT-04:00 <<a href="mailto:vuott@tiscali.it">vuott@tiscali.it</a>>:<br>
> Why do not you try them ? :-)<br>
><br>
> Il 27.06.2018 21:24 PICCORO McKAY Lenz ha scritto:<br>
><br>
> 2018-06-27 14:51 GMT-04:00 <<a href="mailto:vuott@tiscali.it">vuott@tiscali.it</a>>:<br>
>><br>
>> cl = Class.Load("Button")<br>
><br>
> umm i assumed that cl it's equal to my already passed object a argument<br>
> right?<br>
><br>
><br>
>><br>
>><br>
>> For Each s In cl.Symbols<br>
>> Print s<br>
>> Next<br>
><br>
> so then one of thos will print "Text" i guess?<br>
><br>
><br>
>><br>
>> + + + + + + + + +<br>
>> vuott<br>
>><br>
>> Il 27.06.2018 19:25 PICCORO McKAY Lenz ha scritto:<br>
>><br>
>> in the following code i want to detect independent of the type if the ref<br>
>> obj has a input text field and are empty..<br>
>><br>
>> 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 '<br>
>> Return "is empty"<br>
>> Endif<br>
>> Endif<br>
>><br>
>> Return "is not empty? could not detect any input text"<br>
>> end<br>
>><br>
>><br>
>> Lenz McKAY Gerardo (PICCORO)<br>
>> <a href="http://qgqlochekone.blogspot.com" rel="noreferrer" target="_blank">http://qgqlochekone.blogspot.<wbr>com</a><br>
>><br>
>><br>
>><br>
>><br>
>> Con MyOpen hai Giga, SMS e i minuti che vuoi da 3€ al mese, per sempre.<br>
>> Cambi gratis quando e come vuoi e in più hai 10€ di credito omaggio!<br>
>> SCOPRI DI PIU’ <a href="http://tisca.li/MailHPMobile" rel="noreferrer" target="_blank">http://tisca.li/MailHPMobile</a><br>
>><br>
>><br>
>><br>
>> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
>><br>
><br>
><br>
><br>
> Con MyOpen hai Giga, SMS e i minuti che vuoi da 3€ al mese, per sempre.<br>
> Cambi gratis quando e come vuoi e in più hai 10€ di credito omaggio!<br>
> SCOPRI DI PIU’ <a href="http://tisca.li/MailHPMobile" rel="noreferrer" target="_blank">http://tisca.li/MailHPMobile</a><br>
><br>
><br>
><br>
> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
><br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</div></div></blockquote></div><br></div>