Is there alternative to deprecated utils.StringToNumber?

Questions, tips and tricks and techniques for scripting in Servoy

Is there alternative to deprecated utils.StringToNumber?

Postby cuoredisardegna » Mon Sep 18, 2017 2:45 pm

Hi to All,

could SomeOne resolve this problem?

utils.stringToNumber(textString) is a deprecated command.

Is there an alternative to this deprecated command?

Tanks in advance.

Gianni Pinna
cuoredisardegna
 
Posts: 68
Joined: Mon May 07, 2012 5:34 am

Re: Is there alternative to deprecated utils.StringToNumber?

Postby jdbruijn » Mon Sep 18, 2017 3:20 pm

as far as I know this is not depracated, at least I do not have buildmarkers warning about it when I use it.
Jos de Bruijn
Focus Feedback BV
Servoy Certified Developer
Image
jdbruijn
 
Posts: 492
Joined: Sun Apr 11, 2010 6:34 pm

Re: Is there alternative to deprecated utils.StringToNumber?

Postby vschuurhof » Mon Sep 18, 2017 3:22 pm

I have seen that when I pass a numeric value as an argument, I am getting the deprecated feedback. However, why would you want to send a numeric value if the output would also be (and the same)?

The correct argument for this function should be an alphanumeric one. In that case you shouldn't receive this feedback again. Could you please check if argument "textString" is of the correct type?
Vincent Schuurhof
Servoy
vschuurhof
 
Posts: 69
Joined: Tue Dec 14, 2010 12:00 pm


Return to Methods

Who is online

Users browsing this forum: No registered users and 7 guests