PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Classes according to data file structure
Classes according to data file structure
Iniciado por Antonio Díaz, 28,feb. 2021 21:12 - 5 respuestas
Miembro registrado
71 mensajes
Publicado el 28,febrero 2021 - 21:12
Hi guys,

How can I create a class or a structure that will inherit any data file structure? I need this to update the records of a file from a data structure without using the fields. I was thinking of a class because I don't want to create a structure for each table. I don't know if what I am saying makes sense.

Thank you in advance.

--

Antonio Diaz
Emphasys Software, S.C.
Miembro registrado
935 mensajes
Publicado el 03,marzo 2021 - 13:58
If you want to use HFSQL you need to define in the analysis the structure of the data.

Rubén
Miembro registrado
7 mensajes
Publicado el 03,marzo 2021 - 16:44
Hi Antonio,
I am afraid it does not, for me.
I most DBMS you can get a list of columns for a table, then you can load it into an array and try to build INSERTs and SELECTs etc with it.
I have a feeling it is not what you are after.
Look into Ruben's idea or elaborate some more.
May be you should have a look at wxPerts videos too.
All the best
/Jacek
PS. Isn't it that you want us to do the thinking for you ?
Miembro registrado
71 mensajes
Publicado el 03,marzo 2021 - 18:00
Thanks Jacek, Rubén,

I'll keep looking into that....

--

Antonio Diaz
Emphasys Software, S.C.
Publicado el 04,marzo 2021 - 13:59
Did you try using one Record (Type of variable)

https://doc.windev.com/en-US/index.awp…
Miembro registrado
71 mensajes
Publicado el 04,marzo 2021 - 17:37
Yes!.. thanks Paulo, that's what I was looking for, thanks so much!

--

Antonio Diaz
Emphasys Software, S.C.