hi Antonio, do you mean a shared DATA to all controls ? handles must be owned by controls not by the class Could you explain it with more detail ? my HB_FUNC() does return Handle of new Create Control * ::Create( CTRL_CLASS ) // AnsiToWide() ...
Enrico, Why are you using a PRIVATE? I haven't used PRIVATEs for years. You can do the same thing you wanted this way: FUNCTION MAIN() LOCALE cName:="" cName:= CREATEVAR( cName, "Hello" ) ? cName // it exists here RETURN NILSTATIC FUNCTION CREATEVAR...
__mvSetBase() This is a hacking function which changes base private offset so PRIVATE variables created in function which calls __mvSetBase() will not be released when the function exit but will be inherited by its caller. Function sa_1() sa_2() ? cTXT Return .T. Function sa_2() Private cTXT:="...