PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → HCopyFile in Android
HCopyFile in Android
Débuté par Jiva SZTRAKA, 13 aoû. 2016 15:57 - 2 réponses
Membre enregistré
12 messages
Popularité : +1 (1 vote)
Posté le 13 août 2016 - 15:57
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.
Posté le 16 août 2016 - 13:57
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.
Posté le 06 novembre 2017 - 09:50
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()