32 or 64 bit version of product: v5.5.152
Operating system: Windows 7
32 or 64 bit OS: 64
PowerShell : Platform: V5 64Bit (STA) (Elevated) (Forced)
I've been looking at this and just can't see what's wrong.....
Full Error Message :
The block of code isERROR: Update-ComboBox : Cannot validate argument on parameter 'Items'. The argument is null. Provide a valid value for the argument, and then try running the
ERROR: command again.
SingleForm_Test.psf (668, 49): ERROR: At Line: 668 char: 49
ERROR: + Update-ComboBox -ComboBox $cmbSelectEng -Items $a.Name
ERROR: + ~~~~~~~
ERROR: + CategoryInfo : InvalidData: (:) [Update-ComboBox], ParameterBindingValidationException
ERROR: + FullyQualifiedErrorId : ParameterArgumentValidationError,Update-ComboBox
- # Sort the data array in Mileage ASC
- $GData = $GData | Sort-Object Mileage
- #Just list the Name for the combobox
- $a = $GData | Select-Object -Property Name
- # Now push that into the combobox - leave -Append so it clears 1st
- Update-ComboBox -ComboBox $cmbSelectEng -Items $a.Name
Finally can something be done with this webpage https://info.sapien.com/index.php/guis/ ... ox-control as it is somewhat confusing for Googling Powershell coders when Update-ComboBox is used instead.
Thanks.