Andreu;
str -> value.toString()
int -> parseInt(value)
strtrancurrently the only easy way to do strtran is if you can turn the string to search for into a regexp pattern
since str.replace(search, replace) will only replace the first match
you can even do parseInt(value, 16) for parsing as hex
but there's a replaceAll method going through the rounds, and it'll hopefully land this year
https://github.com/tc39/proposal-str ing-rep laceall
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club********************************************************************