Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!apple!dan From: dan@Apple.COM (Dan Allen) Newsgroups: comp.sys.mac.hypercard Subject: Re: help with returnInField message Message-ID: <16641@apple.Apple.COM> Date: 5 Sep 88 23:46:15 GMT References: <265@aeras.UUCP> Reply-To: dan@apple.com.UUCP (Dan Allen) Organization: Apple Computer Inc, Cupertino, CA Lines: 26 In article <265@aeras.UUCP> edc@aeras.UUCP (news guest account) writes: >Ok, here's my problem: > >I have a field called entry and another called lst. lst is a scrolling field. >The idea is I want the first line of the entry field to be copied into >the lst field whenever I hit a return key in the entry field. > >What's wrong with this script: > >on returnInField > get line 1 of field "entry" > put it into line 1 of field "lst" > CloseField >end returnInField > >This is the script for my entry field. When I hit the return key, it >crashes the system. Is it because I am not clearing the entry field? >why won't CloseField do the job? How do I clear the contents of a field >anyway. What does CloseField do? Is that another script of yours? Or do you mean to send the message closeField? How does the system crash? Are you using HC 1.2? Auto-tab is set for this field? Are they card or bkgnd fields? Dan Allen Apple Computer