Using RAPI library to transfer database from device to desktop

mozaharul

Active Member
Licensed User
Hi Erel,

I use RAPI library to transfer database (sqlite) form device to desktop. I'm using ActiveSync 4.5. When I input data in the device, nothing (the same database? ) created in the Apppath on the desktop. What else should be done? The code for your perusal:

Sub App_Start
Form1.Show
rapi.New1
rapi.Connect
....
....
End sub

....
....

Sub rapi_connected
If rapi.DeviceFileExists ("\My documents\kamlapur.sl3")= ture Then
rapi.CopyFileFromDevice1("\My documents\kamlapur.sl3",AppPath)
End If
End Sub

I checked that the database "kamlapur.sl3" is being created in the dvice (My documents).


Sorry, if I fall short to make sense to you with my poor knowledge.

regards
 

manu

Active Member
Licensed User
Longtime User
Can be a problem writing has written "ture" instead of "true"


If rapi.DeviceFileExists ("\My documents\kamlapur.sl3")= ture Then
 

mozaharul

Active Member
Licensed User
Hi manu,
with the amendment, the code executed well on the desktop. but on the device gives errer message like:

An error occurred on sub app_start.

Line number:21

rapi.new1
Error descirption:NullReferenceException continue?


What is the mistake have I done?


regards
 
Top