Tech Tip: Changes to command Version Type
PRODUCT: 4D | VERSION: 13.2 | PLATFORM: Mac & Win
Published On: May 3, 2013
In v13.2, a modification to the command Version type changes the constant values to eliminate any erroneous results. The constants former values are: 2 for 64 bit Version, 1 for Demo Version, 0 for Full Version.
Example using former constants:
If (Version type ?? 2) // 2 equals 64 bit Version |
New constants starting in v13.2: 1 for 64 bit Version, 0 for Demo Version
For compatibility, older versions of 4D can use the code snippet and not have to change when converting to v13.2:
If (Version type ?? Demo version) // Demo Else // Full End if If (Version type ?? 64 bit version) // 64 bit Else // 32 bit End if |