It was -37 when I called my brother (Watertown, NY - new home of the 10th Mountain)
FYI: I got around to pulling up some old code Deana helped me with when I first posted about MSAccess and the CLR - adjusted my dbadapter code by inserting her code to output to reportview:
isdata=1
ObjectClrOption("AppBase", "C:\Powershell\bin")
ObjectClrOption("use","System.Data.SQLite")
cn = ObjectClrNew("System.Data.SQLite.SQLiteConnection")
cn.ConnectionString = "Data Source=C:\RA\SQLITE\SMS.SQLITE"
ObjectClrOption("use", "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
oState = ObjectClrNew( "System.Data.ConnectionState")
cn.Open()
If cn.State == oState.Open
cm = ObjectClrNew("System.Data.SQLite.SQLiteCommand")
cSQL = "SELECT SMS, Carrier FROM Carriers"
cm.Connection = cn
cm.CommandText = cSQL
db = ObjectClrNew("System.Data.SQLite.SQLiteDataAdapter")
dt = ObjectClrNew( 'System.Data.DataTable')
db.SelectCommand = cm
rowcount = db.Fill(dt)
colcount = dt.Columns.Count
If rowcount==0
isData=0
goto end
Endif
arrData = ArrDimension(rowcount+1,colcount)
oCols = dt.Columns
x=0
ForEach col in oCols
arrData[0,x]=col.ColumnName
x=x+1
Next
;Read Data into an Array
For _row = 1 To dt.Rows.Count-1
objRow = dt.Rows.Item(_row)
For _col = 0 To dt.Columns.Count-1
objColumn = dt.Columns.Item(_col)
arrData[_row,_col] = objRow.Item(objColumn)
Next
Next
goto showit
Endif
:end
cn.Close()
Exit
:showit
; Display in Reportview
MyDialogFormat=`WWWDLGED,6.2`
MyDialogCaption=`%cSQL%`
MyDialogX=090
MyDialogY=090
MyDialogWidth=374
MyDialogHeight=147
MyDialogNumControls=003
MyDialogProcedure=`DEFAULT`
MyDialogFont=`DEFAULT`
MyDialogTextColor=`DEFAULT`
MyDialogBackground=`DEFAULT,DEFAULT`
MyDialogConfig=0
MyDialog001=`101,127,036,012,PUSHBUTTON,"PushButton_OK",DEFAULT,"OK",1,10,32,DEFAULT,DEFAULT,DEFAULT`
MyDialog002=`237,127,036,012,PUSHBUTTON,"PushButton_Cancel",DEFAULT,"Cancel",0,20,DEFAULT,DEFAULT,DEFAULT,DEFAULT`
MyDialog003=`001,005,366,110,REPORTVIEW,"ReportView_1",arrData,DEFAULT,DEFAULT,30,7340032,DEFAULT,DEFAULT,"192|192|192"`
ButtonPushed=Dialog("MyDialog")
Goto end