PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → HDeclareExternal IOS Problem
HDeclareExternal IOS Problem
Iniciado por lorenzo.sozio, abr., 05 2019 3:11 PM - 2 respostas
Publicado em abril, 05 2019 - 3:11 PM
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")
Publicado em abril, 09 2019 - 8:05 PM
Solved. The problem was uppercase characters because IOS use only lowercase characters for files
Membro registado
514 mensagems
Publicado em abril, 10 2019 - 3:12 PM
Hi Lorenzo

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

Goor Luck.

--
Best Regards
ARV