Script puts in message but not into field?

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
melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Script puts in message but not into field?

Post by melristau » Wed Aug 03, 2016 10:11 pm

Have a simple group composed of
1) radio button group
2) field
3) "background" image

The group script is putting correct info into message but not into the group's field. Can't figure this one out. Dropboxed the tiny stack for detail examination:

https://www.dropbox.com/s/tzkytv6pk3q1k ... ecode?dl=0
rebuilding visual programming app originally created in 1993 as Hypercard stack

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Script puts in message but not into field?

Post by Klaus » Wed Aug 03, 2016 11:10 pm

Hi Mel,

you have 2 (TWO) fields named "pchoice" in the group and the script puts the text into the FIRST field with that name
which happens to reside BEHIND the second field with that name! :D

LC is NOT case-sensitive when it comes to object names etc.!
So although one field is named "pchoice" and the other one "Pchoice", LC treats them as if they have identical names.


Best

Klaus

melristau
Posts: 56
Joined: Tue Jul 14, 2015 5:15 pm
Contact:

Re: Script puts in message but not into field?

Post by melristau » Wed Aug 03, 2016 11:35 pm

Ha!
Thanks so much Klaus.
rebuilding visual programming app originally created in 1993 as Hypercard stack

Post Reply