PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → Init Values
Init Values
Iniciado por DT, jun., 04 2003 12:39 PM - 2 respostas
Publicado em junho, 04 2003 - 12:39 PM
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
Publicado em junho, 04 2003 - 12:49 PM
"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
Publicado em junho, 04 2003 - 1:42 PM
Whoops I meant ScreentoFile() - possibly this only regonises input as a
result of keyboard activity