PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 27 → Init Values
Init Values
Débuté par DT, 04 juin 2003 12:39 - 2 réponses
Posté le 04 juin 2003 - 12:39
Hi All

I have a form in creation mode with a field (Invisible) to hold a status
(numeric) value
This is initialised to 1 when opening the form and will be automatically
(or not) updated during data entry dependent on certain options selected
by the user

What I find is that this value is not picked up by the FiletoScreen() directive
and results in a zero value (or default) being written to disc
If I specifically add MyFile.Status = Status following FiletoScreen() all
is well

Is this standard behaviour or me?

Regards

DT
Posté le 04 juin 2003 - 12:49
"DT" <derek.theobald@dolgader.co.uk> wrote:

Hi All

I have a form in creation mode with a field (Invisible) to hold a status
(numeric) value
This is initialised to 1 when opening the form and will be automatically
(or not) updated during data entry dependent on certain options selected
by the user

What I find is that this value is not picked up by the FiletoScreen() directive
and results in a zero value (or default) being written to disc
If I specifically add MyFile.Status = Status following FiletoScreen() all
is well

Is this standard behaviour or me?

Regards

DT


Hi DT,

FileToScreen puts file fields into controls on the screen.
ScreenToFile puts the control values into the file fields. If there is no
file field or no screen control linked to a file then you have to handle
the assignments in your code.

Bert
Posté le 04 juin 2003 - 13:42
Whoops I meant ScreentoFile() - possibly this only regonises input as a
result of keyboard activity