I have just implemented a new feature for a client that relies on a feature
introduced in release 80. I want to write code when they use the feature to
check the version number and warn them if they require the new release. I can
easily obtain the text string with the build number using (CVAL('BUILD')).
My problem is that I want to write a piece of code that will continue to work
in future releases. If I just check the build to see if it starts with 7.1.80,
or even check to see that the third term is 80 or greater, my code will no
longer work when 7.5 or 8 comes out (since, presumabely, the third term will
then revert to 1 again).
I'm thinking that the best way to do this is to take the first three terms of
the BUILD, concatenate them together to get '7180', convert that to an integer
and then say the resulting number must be 7180 or higher. Does anyone have any
thoughts on that algorithm, or any experience doing this kind of checking?
--
Larry