revPrintField problem

Sarah Reichelt sarahr at
Mon Jul 25 21:06:59 EDT 2005

> I am having a problem with revPrintField
> Here is the problem:
> I create a stack
> On the card, I create a text field (has a many lines of text), 5  
> images,
> then I group them and make scroll bar so user can scroll up and  
> down to
> see the text and images (name the group as "myField")
> Then on the same card, I create a button called "print" and put this
> code into the print button:
> on mouseUp
>   revPrintField the name of field "myField"
> end mouseUp
> This is the error I got when I click on "print":
>          executing at 2:32:48 PM
> Type    Chunk: no such object
> Object    Button
> Line    revPrintField the name of field "myField"
> Hint    myField
You have named the GROUP "MyField" and then are trying to print the  
field using the group's name. What is the name of the field?

Calling the group "MyField" will only lead to confusion. Call it  
"MyFieldGroup" or something similar so that it is obvious that it is  
a group & not a field. Then rename your field to "MyField" and use  
the script line:
     revPrintField the long name of field "myField"


More information about the Use-livecode mailing list