Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 4 of 4 total |
function Length returns NaN for a string returned from a Javascript function |
Wed, Oct 24 2018 12:11 PM | Permanent Link |
Jose Verger Cybernav | Hello, I have a strange issue with a String result returned from a JavaScript function. Using LogOutput I can see that the value is (29.519366883,-100.79244877) but if I try to obtain the Length of such string the function Length returns NaN, and each character of the string returns Undefined, how is it possible ? What could be wrong ?
|
Thu, Oct 25 2018 2:45 AM | Permanent Link |
ooptimum | Hello,
Are you sure it's a string value? Put this definition somewhere in the interface section of your unit: external function typeof(o: variant): string; and pass your presumably string value to it, like: LogOutput(typeof(myvar)); So this might be able to shed some light. |
Thu, Oct 25 2018 12:41 PM | Permanent Link |
Jose Verger Cybernav | Hello ooptimum,
Your comment has been very helpful, as the solution was looking for the type of result returned. The result was taken from the latLng of occurrence of a google maps event, and instead of returning Event.latLng the correct parameter has to be: Event.latLng.toString() to ensure the type returned. Thanks |
Thu, Oct 25 2018 1:15 PM | Permanent Link |
ooptimum | Glad to help you.
Cybernav wrote: Hello ooptimum, Your comment has been very helpful, as the solution was looking for the type of result returned. The result was taken from the latLng of occurrence of a google maps event, and instead of returning Event.latLng the correct parameter has to be: Event.latLng.toString() to ensure the type returned. Thanks |
This web page was last updated on Friday, April 19, 2024 at 07:09 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |