Freeware Grid ActiveX Component
This is a simple and free ActiveX component for creating and manipulating an in-memory grid of strings or integers. It can be used in ASP, VBScipt, Visual Basic, and any other programming language that supports ActiveX components.
How to Use
Simply download the Zip distribution and unzip. Register the DLL using regsvr32.exe. The following sample VBScript is included in the download and demonstrates the functionality of this component:
' This VBScript example serves as the documentation for this free ActiveX component.
' To use the component, simply unzip the distribution package and register
' the DLL using regsvr32.
' Grid ActiveX creation:
set grid = CreateObject("Grid.Grid")
' Set some cells by row,col
' Row and column numbering begins at 0.
grid.SetCell 2,3,"This is row 2, column 3"
grid.SetCell 3,5,"This is row 3, column 5"
' How many rows does it have?
' We should have 4 rows at this point. (rows 0 and 1 are empty)
MsgBox "Number of rows = " & grid.NumRows
' How many columns in row 3? (There should be 6, all
' of which are empty except for column index 5.
MsgBox "Num columns in row 3: " & grid.GetNumColumns(3)
' Display the string in cell 3,5
MsgBox "Cell(3,5) = " & grid.GetCell(3,5)
' Store an integer in a topmost/leftmost cell: row=0, col=0
grid.SetCellInt 0,0,999
' Retrieve as an integer or string:
MsgBox "cell(0,0) as integer = " & grid.GetCellInt(0,0)
MsgBox "cell(0,0) as string = " & grid.GetCell(0,0)
' Clear the entire grid
grid.Clear
' Now how many rows?
MsgBox "after clearing, #rows = " & grid.NumRows
About Tortuga
Tortuga Group LLC is in the business of building a new index for the World Wide Web at http://www.worldwideweb-x.com. The company has decided to make available some of its internally used ActiveX components to the general public. We hope you find them to be useful.