From 1cfa5c2115d0a7faad5d3f1cf12dc9e739191c0b Mon Sep 17 00:00:00 2001 From: DarkLite1 Date: Tue, 16 May 2017 12:41:00 +0200 Subject: [PATCH] Small fix for ConvertTo-Number Forgot to initialize the variable --- Export-Excel.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Export-Excel.ps1 b/Export-Excel.ps1 index 14012de..9042b3f 100644 --- a/Export-Excel.ps1 +++ b/Export-Excel.ps1 @@ -320,6 +320,8 @@ Function Export-Excel { [String]$Value ) + $R = $null + if ([Double]::TryParse([String]$Value,[System.Globalization.NumberStyles]::Any, [System.Globalization.NumberFormatInfo]::CurrentInfo, [Ref]$R)) { $R