Text in an edit field disappears after opening a substack

J. Landman Gay jacque at hyperactivesw.com
Wed Aug 13 00:37:57 EDT 2014


I don't see anything in those two handlers that would cause a field's content to clear.  I'd look somewhere else, maybe a card or stack script is causing it to happen.  Do you have any closeField or exitField handlers that delete field content? 

On August 6, 2014 1:19:51 PM CDT, Charles Szasz <cszasz at me.com> wrote:
>I am using LC 5.5.5.  I have a substack (“Grade”) that is launched when
>the user goes from one edit field to the next field. The substack has a
>grade option button that inserts a grade in the second field. After the
>user enters text in the first field and goes to the next field, the
>text in the first field is cleared as the substack appears. 
>
>This is my script for the second edit field that launches the substack:
>
>on openField
>   if field "grade2" is empty
>   then
>      go stack "Grade"
>   end if
>end openField
>
>This is the script for the substack:
>
>on preOpenCard
>   set the label of button "grade" to "Select Grade"
>   set the backgroundColor of this card to 202,202,202
>end preOpenCard
>
>There is no script in the first field.
>
>Has anyone encounter this problem?  
>
>Charles Szasz
>cszasz at mac.com
>
>
>
>
>
>_______________________________________________
>use-livecode mailing list
>use-livecode at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your
>subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-livecode

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list