Setting Fields

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
magnadesigns
Posts: 4
Joined: Tue Dec 21, 2010 11:53 pm

Setting Fields

Post by magnadesigns » Tue Dec 21, 2010 11:59 pm

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

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4166
Joined: Sun Jan 07, 2007 9:12 pm

Re: Setting Fields

Post by bn » Wed Dec 22, 2010 12:36 am

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

magnadesigns
Posts: 4
Joined: Tue Dec 21, 2010 11:53 pm

Re: Setting Fields

Post by magnadesigns » Wed Dec 22, 2010 2:29 am

That would probably do it! Amazing what you can miss when staring at a screen too long.

Thanks!

- Noel

Post Reply