Weird Behavior
Thomas McGrath III
3mcgrath at comcast.net
Sun Feb 24 12:34:35 EST 2008
Try adding the grp name when in a group
> ON mouseUp
> IF fld "notes_note" is not empty THEN
> answer "Really clear?" with "Cancel" OR "Yes"
> IF it is "Yes" THEN
put empty into fld "notes_note" of grp "theGroupNameGoesHere"
> END IF
> END mouseUp
HTHs
Tom McGrath
On Feb 24, 2008, at 12:27 PM, rand valentine wrote:
> I'm using Studio version 2.8.1 on an intel Mac running Leopard
> (10.5.2).
> Also running Galaxy and GL2. I'm getting weird behavior that I don't
> understand. An object is recognized for some things but not others.
> For
> example, in the following script, which simply clears a field:
>
> ON mouseUp
> IF fld "notes_note" is not empty THEN
> answer "Really clear?" with "Cancel" OR "Yes"
> IF it is "Yes" THEN
> put empty into fld "notes_note" -- "notes_note"
> END IF
> ELSE
> answer "The note field is already empty."
> END IF
> END mouseUp
>
> In running the script, field "notes_note" is recognized in the IF
> statement, but I get an error message "Chunk: no such object" when I
> run the
> script, at the line that says "put empty into fld "notes_note".
> Anyone know
> what's up? It seems to happen when I put a field into a group, more
> than at
> other times.
>
> rand valentine
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list