DBCREATEDATABASEFROMRESOURCE(ResourceType as String, ResourceID as Integer)
Description
This function allows you to extract databases and shared libraries from your prc file and install them on your device, just as if they had been transferred by Hotsync.
To add a resource to a project, use Add Resource from Project menu, or right click in the Project Explorer. Select the desktop file that you want to add as a resource: .pdb or .prc files can be added. ResourceID is generated automatically by the system. ResourceType defaults to DBIM, but can be set to anything you like. The maximum size of a resource is 64k, so your prc or pdb cannot be larger than that.
At runtime, you can call DbCreateDatabaseFromResource at any point to extract the shared library or database. The function returns an error code: see the table under DBOPEN for the meanings of the messages. There is no need to do this operation with resources of Type DBIM: they are extracted automatically.
Example
Dim res as integer
res=dbCreateDatabaseFromResource("DBIM",1015)