Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinDev Aspects
Message
 
À
09/04/2014 01:54:32
Information générale
Forum:
WinDev
Catégorie:
Autre
Titre:
Divers
Thread ID:
01563218
Message ID:
01598390
Vues:
78
>>Because of your reviews I purchased windev and webdev 18 last year. I'm still learning the tutorial of windev.
>>I hope if in the future I make a question in this section you or somebody else will have the kindness of give me some answer or point me in the right direction.
>>
>>Right now I just have one question.
>>
>>In the tutorial, they explain this command that save the data of the form directly to the table ScreenToFile, but I want to update the same table in a recursive way.
>>
>>the table is like this parent c(20), code c(20), value n(12,2) when I update the table it has to look at the parent and then add the value to it and so on until parent is empty.
>>
>>How can I do this in windew?
>>
>>Regards.
>
>Carlos,
>
>There are many ways to take the data from a screen and save it into a file and vice-versa. Using the ScreenToFile() command is easy and works like this:
>
>1) Design a screen/dialog/form
>2) Add controls and link them to one or more table fields
>3) Position the source tables for the correct record(s) using one of the HREADXXXX() commands
>4) Populate the controls using data from the linked tables using FileToScreen()
>5) The user edits the controls, changes any values
>6) Save the control values back to the tables/files using ScreenToFile()
>7) Go back to step 3 to edit the next record.
>
>Another way:
>
>1) Design the screen/dialog/form
>2) Add controls to the screen but do not link to any table fields
>3) Manually populate the controls using ControlName..Value = ....
>4) Allow the user to edit the data
>5) Save the control values into the files using FileName.FieldName = ControlName..Value
>6) Save all the edits in step 5 into the file with a HModify() command to commit the changes
>7) Position the files on the next record(s) using one of the HreadXXXX() commands
>8) Go to step 3
>
>Which method you use depends a lot on your preference and coding style but the first one is probably the simplest because it handles writing all the data to the correct files and reading the data from the files and populating the controls automatically.

Thank you Jos, I'll check both suggestions.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform