PDA

View Full Version : Getting LW version from LScript



jagoca
02-29-2004, 11:05 AM
Hi,

I would like to know if there's anyway of getting LW version from a LScript (now or in incoming LW8). In fact, I would like to know if atool is running under 7.* versus 8.

The reason for this is that (following LW8 feature list) in new version, toggling subpatches doesn't get into the undo stack, which will affect the refresh boucle on one of my LScripts (jettobevel). I wouldn't like having to write two separate tools for both versions.

thanks in advance!

#lwrs_web
03-03-2004, 11:23 AM
use preprocessor:

@if host_build > 542
....;
@end

or function added in 2.6:
"A new function called lscriptVersion() returns information about the version of the LScript system that is executing the script."