Page 1 of 1

Empty field button won't work

Posted: Sat Jul 07, 2007 10:47 pm
by paulgabel
I have a button on a card that simply says (in script):

Code: Select all

put empty into fld "Records"
The field Records is on the card. But when I click on the button I get the ubiquitous No Such Object error. It's mystifying because the object is right there and the Inspector clearly says that its name is Records and that it's a field not a group. Also, when I copy the script from the editor and paste it into the message box, it works perfectly. Using "" doesn't make any difference. What could I be missing?

Posted: Sun Jul 08, 2007 9:19 am
by Mark
Paul,

What is the stack mode?

Mark

Posted: Sun Jul 08, 2007 6:46 pm
by paulgabel
Hi Mark:

The mode = 1. But the strangest thing happened — last night just before I turned my computer off I could not put empty into the field, but this morning I clicked on the same button and it immediately emptied the field. Revolution is full of mysteries (or maybe it's just me). Thanks for your reply.

Posted: Mon Jul 09, 2007 4:57 pm
by paulgabel
Now, it's back not working again. :(

Posted: Mon Jul 09, 2007 5:13 pm
by Mark
Hi Paul,

Right now I don't have much time, but if you send me your stack, I'll be happy to look into it at the end of the week. You'll find my e-mail address in my profile.

Best,

Mark

Posted: Mon Jul 09, 2007 10:37 pm
by dalkin
I remember in some of the video tutorials the guy with the dreamy Scottish voice sometimes having to close a window and reopen it before the command would 'take'. I can't remember which vid though.

Posted: Tue Jul 10, 2007 2:02 am
by xApple
This could once again be an incarnation of the same bug where objects get assigned the same ID ?

Maybe the field "records" accidently is sharing the same ID as an other object...