PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → HDeclareExternal IOS Problem
HDeclareExternal IOS Problem
Débuté par Lorenzo Sozio, 05 avr. 2019 15:11 - 2 réponses
Posté le 05 avril 2019 - 15:11
hi,
i have a problem reading data from an external fic. My app use FTP to get a zip with data to update. When the app finished to transfer the zip, i extract all files in "import" dir located in the data dir of application.
So i have a Customer table in analysis and a Customer fic in my import folder.

My attempt is to declare a data source linked to my external fic Customer to reading it and update data in local Customer table.

The problem is that external fic it seems empty, but it isn't. ("I checked bytes of .fic .ndx .mmo files"). The same code in windev project, and using simulator of ipad in Windev Mobile works perfectly.


My code:

myDS is Data Source, description = Customer
ficFile is string = CompleteDir(fDataDir())+"import/Customer.fic"

IF not fFileExist(ficFile) THEN
Error("File not found:"+ficFile)
RETURN
END

IF not HDeclareExternal(ficFile,myDS) THEN
Error("Can't declare myds.")
RETURN
END

//it gives 0
info(HNbRec(myDS)+" Rec to update")
Posté le 09 avril 2019 - 20:05
Solved. The problem was uppercase characters because IOS use only lowercase characters for files
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 10 avril 2019 - 15:12
Hi Lorenzo

just for let you know not only for iOS it also happend the same way with Android.

Goor Luck.

--
Best Regards
ARV