PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WM20] FileToArray equivalent available?
[WM20] FileToArray equivalent available?
Iniciado por guest, 25,ago. 2015 07:40 - 4 respuestas
Publicado el 25,agosto 2015 - 07:40
Hi,

i am wondering if there is a function or workaround available which does the same as FileToArray on WM20 ?

Not sure why this function is NOT available on Windev Mobile :(

Thanks
Sascha
Publicado el 25,agosto 2015 - 09:59
Sascha,

http://doc.windev.com/en-US/…

You can use FileToMemory to transfer 1 record to the structure. Then add this structure to your array.

Someting like this:

for all Customers FileToMemory(MyOneCustStructure,Customers) Add(arrMyCustomers,MyOneCustStructure) end
You could even call this function FileToArray if you want to keep your other code compatible with WinDev.

Have a nice day
Danny
Publicado el 25,agosto 2015 - 11:33
Danny,

thanks for the quick response - your suggestions works like a charm!

But still I don´t get why PCSoft does not support FileToArray for Android devices...

Cheers,
Sascha
Publicado el 25,agosto 2015 - 11:47
Hi Sacha,

One of the major hurdles is that the WX Runtime/Framework is not up to the same level for the different platforms it claims to support. Therefore, the 'Single Code, Multiple Platforms' claim from PCSoft is invalid for any real-life complex project.

It allows blocks me from completing my WD/WB OO framework to support WM.

It remains one of my yearly returning suggestions to PCSoft with each release: Get the WX framework/runtime aligned as much as possible (certainly to a higher degree than the current case) between the three products so REAL MULTI-PLATFORM development is possible from within a single project.

Just wanted to share this so you guys can make the same yearly recurring suggestion to PCSoft.
Hopefully we are listened to one day...

Just my 2 cents,

Peter H.
Publicado el 25,agosto 2015 - 12:58
HI Peter,

in fact i am using your framework ( with some modification ) on my Windev Project and trying now to build a mobile solution to support that Application.

And you are absolutely right, it´s a shame that PCSoft does not support basic functions ( which are great and easy to use if they are available ) for no meaning full reason...

Again thx for sharing your Framework with the community!

Cheers,
Sascha