PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD21] CurrentField/ControlCurrent bug
[WD21] CurrentField/ControlCurrent bug
Iniciado por guest, 06,jul. 2016 20:47 - No hay respuesta
Publicado el 06,julio 2016 - 20:47
Hi
We use CurrentField/ControlCurrent fairly extensively, mainly within switch statements that handle database navigation. Fields which allow such navigation are always supercontrols. We've been doing it this way for years but in the latest update (& possibly before that) our navigation stopped working on some fields.

Investigation revealed that ControlCurrent on the first navigation control in a window returned correctly ("SC_Field1Name.EDT_Field") whereas subsequent navigation controls returned the window alias as well ("Alias00001.SC_Field2Name.EDT_Field"). I forwarded it to PCSoft who have acknowledged the problem & sent it to their developers.

I don't know if it's limited to supercontrols and/or MDI child windows but thought I'd give you all a heads up. In my case, once I knew what the problem was, it was easily worked around with a small procedure to strip out the alias name if necessary.

Cheers

David