Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread StrToIntDef
Mon, Jul 3 2017 9:32 AMPermanent Link

Matthew Jones

Way back in 2013 I asked about making StrToIntDef. Things have moved on, and the test for isNAN no longer applies, because it now throws an exception if it is NaN. However, this is sort of a problem if you are using the Chrome "Break on handled exceptions" and you are using StrToIntDef with a catch on the throw. I seem to have about 60 of these to step past.

Thus it would be good to have a StrToInt that didn't throw, or had a "Try" and somehow returned success/fail and the value. The old way would be fine, or a StrToIntDef actual implementation. I tried to take the Javascript instrinsic but the parseInt isn't accessible.

Anyone got any good solutions? Any chance of this in the next update?

--

Matthew Jones
Mon, Jul 3 2017 11:10 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< Anyone got any good solutions? Any chance of this in the next update? >>

There's zero chance of this in the next update, which is going out today or tomorrow (waiting on an EDB build to finish uploading).

It's on the list, though, so it will get picked up at some point.

Tim Young
Elevate Software
www.elevatesoft.com
Image