versioninfo FileMajorVersion property
Return to Introduction  Previous page  Next page
Applies to
dcVersionInfo component.  

Declaration
property FileMajorVersion: LongInt; // Read only!  

Description
The FileMajorVersion property represents the left-most 32 bits of the file version number.  
 
FileMajorVersion and FileMinorVersion are used together to build a 64-bit file version number. The 64-bit value is represented in Microsoft's file version format.  
 
tip Use HiWord(FileMajorVersion) and LoWord(FileMajorVersion) functions to convert this 32-bit number to 16-bit version values.  
 
Example
Following code demonstrates how to convert FileMajorVersion value to the real version number (major and minor):  
 
with dcVersionInfo1 do  
  Label1.Caption := IntToStr(HiWord(FileMajorVersion)) + '.' + IntToStr(LoWord(FileMajorVersion));  

See also
FileMinorVersion, ProductMajorVersion, ProductMinorVersion, FileVersion, FileVersionFloat properties.