Home » Developer & Programmer » Forms » checked property
checked property [message #256234] Fri, 03 August 2007 08:34 Go to next message
sispk6
Messages: 164
Registered: November 2006
Location: pakistan
Senior Member
-----------------------
when i try to uncheck a check box on form load event
---it gives this error
" no such property found"
but it compiles successfully im using forms 6i
so please help
==============================================================

set_item_property('x.q',checked , property_off);
Re: checked property [message #256303 is a reply to message #256234] Fri, 03 August 2007 14:34 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Well, I'd say that this error means that you used an invalid property. Obviously.

Did you, at least, check list of available properties? Open Forms Online Help System and search for SET_ITEM_PROPERTY. You might find yourself surprised.

If you want to set a checkbox, assign a value to it (depending on "Value when (Un)Checked" property); for example
:emp.employed_status := 'Y';
Re: checked property [message #256346 is a reply to message #256234] Fri, 03 August 2007 23:36 Go to previous messageGo to next message
azamkhan
Messages: 557
Registered: August 2005
Senior Member
Well my friend the error is obvious because there is no such property as "set_item_property('x.q',checked , property_off)" because you cannot unchecked your check box like this you have to assign the uncheck value to your check box which you have defined in the check box's property.
Re: checked property [message #256428 is a reply to message #256346] Sat, 04 August 2007 12:53 Go to previous messageGo to next message
sispk6
Messages: 164
Registered: November 2006
Location: pakistan
Senior Member
ya i did it that way like :emp1 = 1;
but why dont set_item_property work ,
its a preferred oracle recomened appproach
its so surprising
Re: checked property [message #256429 is a reply to message #256428] Sat, 04 August 2007 12:56 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
But there's NO such a property! How can you use something that doesn't exist?
Re: checked property [message #256440 is a reply to message #256429] Sat, 04 August 2007 13:33 Go to previous messageGo to next message
sispk6
Messages: 164
Registered: November 2006
Location: pakistan
Senior Member
ya
i realize it now,
but still i wonnder why the compiler does not give an error
i get the error at runtime
Re: checked property [message #257312 is a reply to message #256440] Wed, 08 August 2007 01:28 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Without trying to sound annoying, I can only assume that as 'checked' is a reserved word the compiler was happy but at runtime it was unable to find a 'checked' within 'set_item_property'. Hence you got a RUNTIME error.

David
Previous Topic: target host or object not found
Next Topic: how to get data against listbox item , in textboxes on form
Goto Forum:
  


Current Time: Thu Feb 13 05:33:20 CST 2025