Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/ubercode/public_html/forum/includes/functions_content.php on line 661
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3729: Cannot modify header information - headers already sent by (output started at /includes/functions_content.php:661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3731: Cannot modify header information - headers already sent by (output started at /includes/functions_content.php:661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3732: Cannot modify header information - headers already sent by (output started at /includes/functions_content.php:661)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3733: Cannot modify header information - headers already sent by (output started at /includes/functions_content.php:661)
ubercode.com • View topic - setChecked()

setChecked()

You have questions about Ubercode? Look here for your answers. You didnt find what you where looking for? Be the first to ask the question!

setChecked()

Postby onykage on Fri Oct 22, 2010 9:16 pm

can you tell me why when i use setChecked() i get a "no such property" error when the setChecked() is called?

eg: call setChecked(me.checkbox1, TRUE)
onykage
Admin
 
Posts: 221
Joined: Sat Jan 03, 2009 8:28 pm
Location: Armpit USA
Programming languages: php, java, python, ubercode, easyuo, peril, cobal, pascal, ruby

Re: setChecked()

Postby ubercode on Sat Oct 23, 2010 12:22 pm

Use the Value property for the checked state of the checkbox, eg SetValue(me.Checkbox1, 1). It's called Value instead of Checked for VB compatibility. If you get errors similar to this, it's worth going into the help and looking at the Checkbox properties. This shows all the allowed properties and examples of usage.
ubercode
Site Owner
 
Posts: 275
Joined: Sun Jan 04, 2009 3:46 pm
Location: UK Channel Islands

Re: setChecked()

Postby onykage on Sat Oct 23, 2010 10:35 pm

ahh..

I wasnt looking at setValue, i only tried setChecked. If setValue toggles the check or radio then what is setChecked used for?
onykage
Admin
 
Posts: 221
Joined: Sat Jan 03, 2009 8:28 pm
Location: Armpit USA
Programming languages: php, java, python, ubercode, easyuo, peril, cobal, pascal, ruby

Re: setChecked()

Postby ubercode on Sun Oct 24, 2010 5:08 pm

SetChecked sets the tick mark next to menu items. Go into the help, type SetChecked in the index and it tells
you what it applies to, and gives you an example. It's somewhat confusing that SetChecked is for menuitems not checkboxes - but this follows the naming convention used by VB.
ubercode
Site Owner
 
Posts: 275
Joined: Sun Jan 04, 2009 3:46 pm
Location: UK Channel Islands


Return to Ubercode Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron