Well, I think I'm wrong about needing to manually select the other database stuff as I described in my last post. I decided to try just using the "Search for required inclusions when saving the standalone application" option, and it seems to have included all the database stuff I need--more files than before, so maybe there are some unnecessary files, but I'm still able to access data from the Microsoft Outlook database in the standalone.
Here are the files in the Windows standalone folder: \Externals\revdb.dll and \Externals\database_drivers\dbmysql.dll, dbodbc.dll, dboracle.dll, dbpostgresql.dll, and dbsqlite.dll.
I don't see anything in there about dataGrids, though.
If the required dataGrid library IS included in the above listed files, then my dataGrid "Display Data" button just isn't working. Here's the script, which I modified from the tutorial "Converting a Database Cursor to a DataGrid Array" (
http://lessons.runrev.com/s/lessons/m/d ... grid-array) for use with my Microsoft Access database. Maybe I modified incorrectly.
Here's the script. The part about opening a database connection and getting the connection ID works when I'm just trying to put the data into a regular field. (NOTE: I don't know whether this works in the IDE because unfortunately I only have the IDE for Mac, and the program I'm writing is for Windows, so I have to create the standalone to test things. If I could create a database reference using the Windows ODBC Data Source Administrator that includes a file path from my Mac to the PC, which is connected by network, then maybe I could test in the IDE, but I don't know that this is possible.)
on mouseUp
get revOpenDatabase ("ODBC","StevesSCIR", , , )
put it into connectionID
if connectionID is an integer then
put revQueryDatabase(connectionID,"SELECT * FROM Table1") into theCursor
if theCursor is an integer then
ConvertDBCursorToArray theCursor, theDataGridArray
put the result into theError
if theError is empty then
set the dgData of group "Data Grid 1" to theDataGridArray
end if
revCloseCursor theCursor
end if
revCloseDatabase connectionID
else
answer "Error connecting to the database. Returned connectionID: " & connectionID
end if
end mouseUp
on convertDBCursorToArray pCursor, pOutArrayA
local i
local theFields
local theError
put revDatabaseColumnNames(pCursor) into theFields
if theFields begins with "revdberr," then
put item 2 to -1 of theFields into theError
end if
if theError is empty then
put 0 into i
repeat until revQueryIsAtEnd(pCursor)
add 1 to i
repeat for each item theField in theFields
put revDatabaseColumnNamed(pCursor, theField) into pOutArrayA
[theField]
end repeat
revMoveToNextRecord pCursor
end repeat
end if
return theError
end convertDBCursorToArray