Page 1 of 1
little bit of value passing to form
Posted: Mon Jan 21, 2019 6:28 am
by Filters
hi i'm having problem with multiple value passing to new form
with one value there is no problem but how to pass 2-3-5 different values to new form
Code: Select all
(Show-Domain_Users_psf $select_domain.Text)
but how to pass multiple values to new form
Re: little bit of value passing to form
Posted: Mon Jan 21, 2019 9:00 am
by jvierra
Just add more parameters as needed.
Code: Select all
Param(
$P1,
$P2
$P3,
$P4,
$P5
)
]/code]
Re: little bit of value passing to form
Posted: Mon Jan 21, 2019 12:06 pm
by Filters
maybe this will sound stupid question but i'm new to powershell
but from otherside?
Code: Select all
Call-AddEmployeeForm_psf $p1.text,
$p2.text,
$p3.text
something like that?
Re: little bit of value passing to form
Posted: Mon Jan 21, 2019 12:53 pm
by jvierra
Start here:
help about_parameters
Also:
help about_functions
To learn PowerShell without learning bad things from guessing or from bad internet advise and examples start here:
Microsoft Virtual Academy - Getting Started with Microsoft PowerShell