PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Classes according to data file structure
Classes according to data file structure
Started by Antonio Díaz, Feb., 28 2021 9:12 PM - 5 replies
Registered member
71 messages
Popularité : +2 (2 votes)
Posted on February, 28 2021 - 9:12 PM
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.
Registered member
795 messages
Popularité : +40 (42 votes)
Posted on March, 03 2021 - 1:58 PM
If you want to use HFSQL you need to define in the analysis the structure of the data.

Rubén
Registered member
7 messages
Posted on March, 03 2021 - 4:44 PM
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 ?
Registered member
71 messages
Popularité : +2 (2 votes)
Posted on March, 03 2021 - 6:00 PM
Thanks Jacek, Rubén,

I'll keep looking into that....

--

Antonio Diaz
Emphasys Software, S.C.
Posted on March, 04 2021 - 1:59 PM
Did you try using one Record (Type of variable)

https://doc.windev.com/en-US/index.awp…
Registered member
71 messages
Popularité : +2 (2 votes)
Posted on March, 04 2021 - 5:37 PM
Yes!.. thanks Paulo, that's what I was looking for, thanks so much!

--

Antonio Diaz
Emphasys Software, S.C.