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...
... 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:="CIAO" __mvSetBase() // importante Return .T.