Hi,
On
DEFINE WINDOW Command help session:
NAME ObjectName
Creates an object reference for the window, allowing you to manipulate the window with object-oriented properties available for the form object.
Then, without NAME the window it is or it is not a object ?
The answer:
It is a object, always This have a impact on the private datasessions
- i cannot DEFINE a free text window ( audit, messages, ... )
directly on the fist private datasession opened, and share this with other private datasession.
CLEAR
PUBLIC otest
FOR j=1 TO 10
otest=CREATEOBJECT("test")
? "Forms",_SCREEN.FormCount, "Sessions ", ASESSIONS(ArrayName)
NEXT
RETURN
DEFINE CLASS test AS form
DataSession = 2
PROCEDURE Load
DEFINE WINDOW (SYS(2015)) FROM 0,0 TO 10,10
RETURN .F.
ENDPROC
ENDDEFINE
Fabio