Scripter2004
(Fresh Scripter)
2004-03-15 04:59 PM
Stripping the dot from a version number

When I have a string whose value is a version number (say, $version = 8.1), how can I create a new variable whose value is the version number without the dot (say, $version_nodot = 81)?

Thx
Ron


Richard H.Administrator
(KiX Supporter)
2004-03-15 05:06 PM
Re: Stripping the dot from a version number

Code:
$version_nodot=Join(Split($version,"."),"")



Scripter2004
(Fresh Scripter)
2004-03-15 05:43 PM
Re: Stripping the dot from a version number

Great! Thanks!