PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → FileToScreen() while excluding certain controls
FileToScreen() while excluding certain controls
Iniciado por c.curtis, 13,feb. 2015 23:51 - 2 respuestas
Miembro registrado
18 mensajes
Publicado el 13,febrero 2015 - 23:51
Is it possible to do a FileToScreen() while excluding certain controls?

I have two edit controls for first and last name that searches and selects a row in a customer file. When a row is selected, the tabs below get updated with customer info by FileToScreen(). Unfortunately this messes up my edit controls for searching because they are linked to first and last name.

I tried disabling and re-enabling the links before and after FileToScreen() but that messes up the the auto-complete.
Miembro registrado
18 mensajes
Publicado el 13,febrero 2015 - 23:54
Maybe this is a situation where I need to write out all the links myself instead of using FileToScreen()?

EDT_LastName = Customer.LastName
EDT_FirstName = Customer.FirstName
ETC...
Publicado el 15,febrero 2015 - 14:50
Hi Curtis,

You can still use filetoscreen ... as long as you do not link the editboxes you use for your search. So, you have an edt_box to
1) search for the firstname (not linked to the file)
2) search for the lastname (not linked to the file)
3) show the firstname (linked to the file)
4) show the lastname (linked to the file)

Supplementary advantage: if the search didn't came up with the expected result, the search parameters had not changed, so the user can edit them and try again.

I use this myself, so it is a 'proven-to-work' method.

Kind regards,
Rudolf