Hi Community,
I declared a variable :When I modify it in a function, it works in debug mode. It no longer works in the compiled exe. Thank you for your attention
I declared a variable :
Code:
[Boolean]$sortDescending = $False
Code:
$LV_WSFilesHeaderName.add_Click({ if ($sortDescending) { $FolderWS.ListFiles = $FolderWS.ListFiles | Sort-Object -Property FullName -Descending $Script:sortDescending = $False } else { $FolderWS.ListFiles = $FolderWS.ListFiles | Sort-Object -Property FullName $Script:sortDescending = $True } $XMLForm.DataContext[1] = $FolderWS })
Statistics: Posted by Frigoult — Mon Oct 28, 2024 3:42 am