| Version: ToString |
Converts the value of the current Version object to its equivalent string representation. A specified count indicates the number of components to return.
Public Function ToString( Optional ByRef FieldCount As Variant ) As String
| FieldCount | Return Value |
|---|---|
| 0 | An empty string (""). |
| 1 | Major |
| 2 | Major.Minor |
| 3 | Major.Minor.Build |
| 4 | Major.Minor.Build.Revision |
Version(1,3,5), ToString(2) returns "1.3" and ToString(4) throws an exception.
| Exception | Condition |
|---|---|
| ArgumentException |
FieldCount is less than zero, or more than four. -or- FieldCount is more than the number of components defined in the current Version object. |