Reported By: Richard Harding Reported On: 10/30/2021 For: Version 3.01 Build 4
# 4866StrToInt and StrToDouble Not Rejecting Strings Containing Alphabetic Characters The isFloat and isInt functions returns incorrect results.
isInt(‘0a’) = true
isFloat(0.0a’) = true
The example in the documentation, (X := IsInt('10.20'); // X is False), also returns true.
CommentsThe issue was the usage of the ParseInt and ParseFloat JavaScript functions, which simply stop parsing when encountering an alphabetic character instead of returning a NaN (not a number) result that can be detected.
ResolutionFixed Problem on 12/1/2021 in version 3.02 build 1
Products AffectedElevate Web Builder Elevate Web Builder Trial