Odd data in message box

Dan Friedman dan at clearvisiontech.com
Sat Oct 17 13:13:17 EDT 2020

Mark and Jacque,

Thank you for your assistance.  There was invalid data in sTime.  Interestingly, it wasn't from the data I was loading... it was old data coming from a reference to an array in a datagrid.  Setting the datagrid's Persistent Data to false resolved the problem.

A couple follow up questions:

1. Why didn't the debugger throw an error?  Instead, it put this error chunk in the message box?
2. Where did Jacque get that list of codes?   Is there some support docs I don't know about that explain these types of thing?

Again, thank you both for your help.  What would we do without this list, and the talented and helpful people on it?!


On 10/16/20, 12:36 PM, "use-livecode on behalf of Mark Wieder via use-livecode" <use-livecode-bounces at lists.runrev.com on behalf of use-livecode at lists.runrev.com> wrote:

    On 10/16/20 9:57 AM, Dan Friedman wrote:
    > Mark,
    > THANK YOU for the reply...   Line 2185 is:
    > 	put sTime + ((timeOffset*60)*60) into sTime

    That's what I thought. The error you're getting (see Jacque's annotated 
    list) is pointing to an invalid value for sTime in some iteration of 
    that function call. My guess is either sTime is empty or not a numeric 

    Try something like this to pinpoint the error:

       if char 1 of timeOffset = "-" then
         put ((timeOffset*60)*60) into pTimeOffset
         put sTime - pTimeOffset into sTime
             put sTime + ((timeOffset*60)*60) into sTime
         catch e
             put the sTime & cr executionContexts & cr after msg
         end try
       end if

      Mark Wieder
      ahsoftware at gmail.com

    use-livecode mailing list
    use-livecode at lists.runrev.com
    Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list