PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV Mobile 2024 → HCopyFile in Android
HCopyFile in Android
Started by Jiva SZTRAKA, Aug., 13 2016 3:57 PM - 2 replies
Registered member
12 messages
Popularité : +1 (1 vote)
Posted on August, 13 2016 - 3:57 PM
Just wondering if anyone has had success using the HCopyFile function within an Android app? I've created a procedure that uses the HCopyFile function to synchronize the data between Client Server and HFSQL (on device) - which works fine when running the demo on the PC - but soon as I try and run the same thing on Android tablet, I get the following error:

Fatal error

Error in SyncData global procedure process.
HCopyFile function called.
Unable to open <!s!> files.

I'm unsure as to how to fix this? According to the HCopyFile details page the function should be compatible on android devices.
Posted on August, 16 2016 - 1:57 PM
Hi,

this can come from many things, as the emulator is just that...

So without seing your code...

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


Le 8/13/2016 à 7:57 AM, Jiva SZTRAKA a écrit :
Just wondering if anyone has had success using the HCopyFile function
within an Android app? I've created a procedure that uses the HCopyFile
function to synchronize the data between Client Server and HFSQL (on
device) - which works fine when running the demo on the PC - but soon as
I try and run the same thing on Android tablet, I get the following error:

Fatal error

Error in SyncData global procedure process.
HCopyFile function called.
Unable to open <!s!> files.

I'm unsure as to how to fix this? According to the HCopyFile details
page the function should be compatible on android devices.
Posted on November, 06 2017 - 9:50 AM
Hi Fabrice - this thread was obviously posted quite a while ago and I never did solve the issue I had - but I did find a work-around by using the hCopyRecord function instead.

However I'm revisiting this issue as it would make synchronising data from server --> tablet so much faster if I could simply get the hCopyFile method to work.

Any assistance in working out why I get the error above would be much appreciated!

A sample of the code I'm trying to use is:

HLockFile(PR_ProjectDetails, hLockReadWrite)
IF NOT HCopyFile("", fDataDir+[fSep]+"PR_ProjectDetails_Local.fic", Projects, "PR_ProjectDetails.fic", hCreateIndex, "", "") THEN
Error(HErrorInfo(hErrFullDetails))
END
HUnlockFile()