Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unassigned Variable

Status
Not open for further replies.

soks2626

Programmer
Jul 3, 2002
22
US
Hi:
Quick question... I put a checkbox type dealy on my form and assigned values for checked and unchecked. That's all and when I click on it, I get the infamous "Unassigned Variable" dialog box. Any ideas on what may be causing this? there aren't any events or methods to this checkbox. Thanks.

-Alex
 
Is it linked to a field? What's the field name?

Mac :)

"Do not delve too deeply in the arts of your enemy and so become ensnared by them"

langley_mckelvy@cd4.co.harris.tx.us
 
It's called "Data_Checkbox" and it's an undefined field.
 
That's odd. Two more questions: what values did you assign; and, is there any code attached to the 'onClick' method of the field or one of it's components?

Mac :)

"Do not delve too deeply in the arts of your enemy and so become ensnared by them"

langley_mckelvy@cd4.co.harris.tx.us
 
soks2626,

Also, make sure you've saved the form with Program | Compiler warnings and Program | Compile With Debug both enabled.

If your error is being triggered by a coding program, this will give you a little more information to go on.

Hope this helps...

-- Lance
 
The checked value is "X" and the unchecked value is blank. There's isn't anything attached to the checkbox (no code at all). And when I click on the text, same error or the box or the container. Hmmm... sorry if this seems like a lame question, I just can't find the error.

-Alex
 
It may have something to do with the unchecked value being blank. Internally I think it has to assign something to it's value property. Try setting the unchecked value to something other than a blank. I use 0 and 1 (that way I can add up the 'Trues' if I need to.



Mac :)

"Do not delve too deeply in the arts of your enemy and so become ensnared by them"

langley_mckelvy@cd4.co.harris.tx.us
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top