Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  Create  Table  in  Memory  

 Content of Create Table in Memory.ps1
MD5 Hash: AF080E19B8F7C29E045B49880E23A97A
$dt = new-object system.data.datatable "Test"
$c1 = new-object system.data.datacolumn col1,([int])
$c2 = new-object system.data.datacolumn col2,([string])
$dt.columns.add($c1)
$dt.columns.add($c2)
$row1 = $dt.newrow()
$row1.col1 = 10
$row1.col2 = "This is the first row"
$dt.rows.add($row1)
$row2 = $dt.newrow()
$row2.col1 = 100
$row2.col2 = "This is the second row"
$dt.rows.add($row2)
$dt

($dt.rows)[0]

($dt.rows)[1].col2

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a