Re: Odd data in message box

2020-10-18 Thread Mark Wieder via use-livecode
On 10/18/20 10:56 AM, J. Landman Gay via use-livecode wrote: I've seen error lists appear in the message box too I've seen that sometimes as well, but don't have a repeatable recipe. I just always assume it's something screwy with my code. -- Mark Wieder ahsoftw...@gmail.com

Re: Odd data in message box

2020-10-18 Thread Dan Friedman via use-livecode
//@Dan: Do you have a custom errorDialog handler in your message path? I do not. -Dan On 10/18/20, 9:44 AM, "use-livecode on behalf of Richard Gaskin via use-livecode" wrote: True, but what would anyone go out of their way to write an error handler that provides less useful

Re: Odd data in message box

2020-10-18 Thread J. Landman Gay via use-livecode
When you build a standalone there's an option to report errors in an email or a file. The purpose is to allow users to send error info to the developer. These are raw error messages like Dan saw and are of no use to the user, so translating them makes no sense. But you're right that new users

Re: Odd data in message box

2020-10-18 Thread Richard Gaskin via use-livecode
True, but what would anyone go out of their way to write an error handler that provides less useful information than what LC provides if left alone? And some of the error info I see shared in the forums is from newer users, who seem unlikely to have ventured into the relatively arcane world

Re: Odd data in message box

2020-10-17 Thread J. Landman Gay via use-livecode
If there's an errorDialog handler, errors bypass the IDE. That's one way it could happen. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On October 17, 2020 4:06:03 PM Richard Gaskin via use-livecode wrote: J. Landman Gay wrote: On

Re: Odd data in message box

2020-10-17 Thread Richard Gaskin via use-livecode
J. Landman Gay wrote: On 10/17/20 12:13 PM, Dan Friedman via use-livecode wrote: Where did Jacque get that list of codes? From a plugin Richard and I wrote some years ago. It dynamically loads the error list based on the version of LC you're using. You can look up individual codes, or paste

Re: Odd data in message box

2020-10-17 Thread J. Landman Gay via use-livecode
On 10/17/20 12:13 PM, Dan Friedman via use-livecode wrote: Where did Jacque get that list of codes? From a plugin Richard and I wrote some years ago. It dynamically loads the error list based on the version of LC you're using. You can look up individual codes, or paste in a list of errors

Re: Odd data in message box

2020-10-17 Thread Mark Wieder via use-livecode
On 10/17/20 10:13 AM, Dan Friedman wrote: 1. Why didn't the debugger throw an error? Instead, it put this error chunk in the message box? Dunno. I can't replicate your experience. Somewhat higher in your stack or in the message path? If I try this on my system with an invalid sTime value

Re: Odd data in message box

2020-10-17 Thread Mark Wieder via use-livecode
On 10/17/20 10:13 AM, Dan Friedman wrote: 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? The error texts are in a global property, but there's a definite catch22ness involved because you have to know it's there

Re: Odd data in message box

2020-10-17 Thread Dan Friedman via use-livecode
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

Fwd: Re: Odd data in message box

2020-10-16 Thread Mark Wieder via use-livecode
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

Re: Odd data in message box

2020-10-16 Thread J. Landman Gay via use-livecode
On 10/16/20 10:46 AM, Dan Friedman via use-livecode wrote: There is no problem with this function, and it's producing the correct time. However, when it's all said and done, I get this in the message box: 394,2185,1 465,2185,1 253,2185,1 241,2181,1,convertToLocalTime 353,0,0,stack

Re: Odd data in message box

2020-10-16 Thread Dan Friedman via use-livecode
Mark, THANK YOU for the reply... Line 2185 is: put sTime + ((timeOffset*60)*60) into sTime function convertToLocalTime sTime //sTime is already been converted to seconds format //convert the time using the hour offset for local time zone put word 6 of the internet date into

Re: Odd data in message box

2020-10-16 Thread Mark Wieder via use-livecode
On 10/16/20 8:46 AM, Dan Friedman via use-livecode wrote: There is no problem with this function, and it's producing the correct time. However, when it's all said and done, I get this in the message box: 394,2185,1 what's line 2185 look like? -- Mark Wieder ahsoftw...@gmail.com

RE: Odd data in message box

2020-10-16 Thread Ralph DiMola via use-livecode
Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Dan Friedman via use-livecode Sent: Friday, October 16, 2020 11:46 AM To: How to use LiveCode Cc: Dan Friedman Subject: Odd data in message box

Odd data in message box

2020-10-16 Thread Dan Friedman via use-livecode
I get a bunch of data from my server. In this array, there are some dates. I roll through each one converting the date to local time: function convertToLocalTime sTime //sTime is already been converted to seconds format //convert the time using the hour offset for local time zone put