header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
What is a Colon in a varable mean/do?
Last Post 04 Feb 2011 05:40 AM by newdamage1. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
newdamage1User is Offline
New Member
New Member
Posts:10
Avatar

--
02 Feb 2011 10:02 AM
    Ive see this a few places, and could not find what it means. Here's the specific function I saw it in:

    function Get-ProcessInfo { 
        $array = New-Object System.Collections.ArrayList 
        $Script:procInfo = Get-Process | Select Id,Name,Path,Description,VM,WS,CPU,Company | sort -Property Name 
        $array.AddRange($procInfo
        $dataGrid1.DataSource = $array 
        $form1.refresh()

    /curious
    halr9000User is Offline
    PowerShell MVP, Site Admin
    Advanced Member
    Advanced Member
    Posts:565
    Avatar

    --
    02 Feb 2011 10:12 AM
    That allows you to modify the scope of a variable. Reading material to learn more:

    http://blogs.msdn.com/b/powershell/...ables.aspx

    http://technet.microsoft.com/en-us/...15289.aspx

    HTH
    Community Director, PowerShellCommunity.org
    Co-host, PowerScripting Podcast
    Author, TechProsaic
    newdamage1User is Offline
    New Member
    New Member
    Posts:10
    Avatar

    --
    04 Feb 2011 05:40 AM
    Ahh I see, TVM!
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer