Why is Put not Putting?

Gregory Lypny gregory.lypny at videotron.ca
Mon Aug 17 11:53:05 EDT 2009


	Hello everyone,

	I use the simple handler below to process large amounts of text.   
Because it can take anywhere from a couple of seconds to ten minutes  
to run, I like to know that something is happening, so I put the very  
first statement in the handler, "Preparing for search..." which is  
supposed to appear in field "Info 1" to let me know that the thing has  
started.  The trouble is, that little progress message never appears,  
but the last statement in the handler, "Processing time and...,"  
does.  This suggests to me that Rev reads ahead through the handler,  
and if it is overwhelmed by a task, such as getting a big data field,  
then it cannot update the screen according to statements that came  
before.  (There are no lock screen statements in the handler.)  How  
can I fix this, so that the statements are executed in the way they  
are meant to be?

	Regards,

		Gregory


on mouseUp

    put "Preparing for search..." into fld "Info 1" -- This never  
appears in the field!

    set the itemDelimiter to tab

    get fld "Data" of card "Data" -- Lots of data

       repeat for each line thisLine in it
  	  -- Process the text
       end repeat

   put "Processing time and [other stats]" into fld "Info 1"

end mouseUp



More information about the use-livecode mailing list