How to get variables in the order they are declared
Posted
by guillermooo
on Stack Overflow
See other posts from Stack Overflow
or by guillermooo
Published on 2010-04-27T13:15:57Z
Indexed on
2010/04/27
13:23 UTC
Read the original article
Hit count: 287
powershell
Is it possible to make Get-Variable
always return variables in the order they've been declared?
& {
$c = 2
$b = 1
$a = 0
get-variable -scope local
}
© Stack Overflow or respective owner