PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] data source variable overwrite
[WD20] data source variable overwrite
Iniciado por guest, 08,feb. 2018 04:57 - 2 respuestas
Publicado el 08,febrero 2018 - 04:57
I have a window, inside I have 2 local procedure . in each I declaring data source variable using same name
m_Query is data source

inside both procedure calling hexecutesqlquery()

the weird things happen when from inside proc1 , i call proc2 .
after calling proc2 , m_query in proc1 no longer contain query result from proc1 but it overwrite by proc1 .

I resolve this by make different name . I don't under why this happen . when i try other variable (string / int ) , I don't see this problem . why ?
Publicado el 08,febrero 2018 - 07:33
Hi ccc2,

in my experience, a data source is always global.
Publicado el 08,febrero 2018 - 08:23
Quote
Stefan Bentvelsen

Hi ccc2,





in my experience, a data source is always global.

thanks stefan for the info . I didn't know that