PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV (versões anteriores) → Object naming? [WD16]
Object naming? [WD16]
Iniciado por BigED, jun., 11 2017 11:01 AM - Sem resposta
Membro registado
9 mensagems
Publicado em junho, 11 2017 - 11:01 AM
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?