System
Powershell Studio 2019 64 bit
Windows 10
User
Bought Powershell Studio yesterday
New to Powershell
Previous experience with Assembly, Pascal, C, PHP, Python
If I declare variables such as
Code: Select all
$First = "Fred"
$Last = "Flinstone"
$Customer = "Barney"
$Location = "Bedrock"
Code: Select all
$textboxInfo.Text = "First: $First`nLast: $Last`nCustomer: $Customer`nLocation: $Location"
First: Fred
Last: Flinstone
Customer: Barney
Location: Bedrock
If I pass those same values in from a separate form
Code: Select all
param (
$First,
$Last,
$Customer,
$Location
)
Code: Select all
$textboxInfo.Text = "First: $First`nLast: $Last`nCustomer: $Customer`nLocation: $Location"
First: Fred Flinstone Barney Bedrock
Last:
Customer:
Location:
I don't know what I am missing. I actually don't need the formatting pretty, I was just testing values were passing between forms correctly, and now I can't move past it because this makes no sense.