Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 2 Jahren, 5 Monaten
Letzter Beitrag:
vor 2 Jahren, 5 Monaten
Beteiligte Autoren:
Sascha77, Peter Holemans, Danny Lauwers

[WM20] FileToArray equivalent available?

Startbeitrag von Sascha77 am 25.08.2015 05: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

Antworten:

Sascha,

http://doc.windev.com/en-US/?3013071&name=FileToMemory

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

von Danny Lauwers - am 25.08.2015 07:59
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

von Sascha77 - am 25.08.2015 09:33
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.

This blocks me a.o. 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.

von Peter Holemans - am 25.08.2015 09:47
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

von Sascha77 - am 25.08.2015 10:58
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.