Page 1 of 1

Setting Fields

Posted: Tue Dec 21, 2010 11:59 pm
by magnadesigns
I'm sure I'm doing something very simple wrong here, but I can't seem to fix it :)

I'm trying to turn on/off a check box and have it hide/unhide a group of controls.

This is what I have:

Code: Select all

    if hilite of button "Work_International_Check" is true then
       set the Visible of Field "International_Work_Address" to true
       set the visible of button "Work_Countries" to true
       set the visible of field "Work_Address" to false
       set the visible of field "Work_Address2" to false
       set the visible of field "Work_City" to false
       set the visible of button "Work_State" to false
       set the visible of field "work_zipcode " to false
       set the visible of field "work_address_label" to false
       set the visible of field "work_Address2_label" to false
       set the visible of field "work_city_label" to false
       set the visible of field "work_state_label" to false
       set the visible of field "work_state_zip" to false
 end if
And this is the error I am receiving

button "Work_International_Check": execution error at line 9 (Chunk: no such object) near "work_zipcode ", char 24

Work_State is a combo box button and work_zipcode is a field. I've checked both of those.

I'm assuming it has to do with the button, and I'm not sure what I'm doing wrong. Any help would be great!

Thanks!

- Noel

Re: Setting Fields

Posted: Wed Dec 22, 2010 12:36 am
by bn
Hi Noel,

Welcome to the Forum.

Try to eliminate the extra space at the end of your
"work_zipcode " to false
I think that is the problem.

Kind regards

Bernd

Re: Setting Fields

Posted: Wed Dec 22, 2010 2:29 am
by magnadesigns
That would probably do it! Amazing what you can miss when staring at a screen too long.

Thanks!

- Noel