revPrintField problem

Ban Nguyen bann at sunncomm.com
Mon Jul 25 18:00:40 EDT 2005


> > Hello everyone,
> > 
> > 
> > I am having a problem with revPrintField
> > 
> > [snip]
> > 
> > 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
> > 
>
---------------------------------------------------------------------
> Hi Ban,
> 
> The revPrintField wants a long name or ID:
> --
> on mouseUp
>   revPrintField the long ID of field "MyField"
> end mouseUp
> --
> 
>
---------------------------------------------------------------------
> 
> I changed the field to a long name but still got the
> same error.  The
> field does have an ID, I checked from property
> inspector
> 

Bizarre. Does it help if you put parentheses ?
--
on mouseUp
  revPrintField (the long ID of field "MyField")
end mouseUp
--

If that doesn't do it, it may not be able to find this
field -- is it on the same card as the button ?

------------------------------------------------------

I did put the () but still got the same error


------------------------------------------------------



More information about the use-livecode mailing list