SplitScript reference / FileVersion / fromParts
FileVersion.fromParts
Function
FileVersion.fromParts(major: u16, minor: u16, build: u16, privatePart: u16) -> FileVersion
Constructs a numeric Windows file version from its four components.
The v literal is the concise spelling for calls with constant components.
Parameters
major: Major version component.minor: Minor version component.build: Build version component.privatePart: Private version component.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Construct a dynamically discovered version
let version = FileVersion.fromParts(1, 2, 3, 4)