PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
HCopyFile in Android
HCopyFile in Android
Started by Jiva SZTRAKA, Aug., 13 2016 3:57 PM - 2 replies
Connect yourself…
Jiva SZTRAKA
#1
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.
Report
0
0
Fabrice Harari
#2
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.
Report
0
0
Jiva SZTRAKA
#3
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()
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text