PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV (versiones precedentes) → Object naming? [WD16]
Object naming? [WD16]
Iniciado por BigED, 11,jun. 2017 11:01 - No hay respuesta
Miembro registrado
14 mensajes
Publicado el 11,junio 2017 - 11:01
From WinDEV Manual: "The object is created during its declaration. The object is local by default."

I have two Windows, Win1 and Win2 and declared Class MyClass

//Win1
//Global declaration Win1
gclTest is MyClass

//after processing click BTN_New to open Win2
Open(Win2)


//Win2
//Global declaration Win2
gclTest is MyClass

//after processing return to Win1
RETURN


After returning to first window the class gclTest is destroyed.
If I use different name, everything is OK.

So, how it is possible if object is local by default, as manual say?

Any clue?