The following stack script code works great in the IDE but not compiled in 4.0.
Code: Select all
global gconId
on preopenstack
opendb
end preopenstack
on opendb
put revOpenDatabase("sqlite", "C:/Estimate Data/Estimate Info.dat", , , , ) into tConId
if tConID is "" then
answer warning "Problem creating or accessing database!"
else
answer information "AppReg Connected! Your connection ID is: " & tConID
put tConID into gConID
end if
end opendb
Do I need to move the external dlls to the windows folder to work after compiled?