Information générale
Catégorie:
Gestionnaire d'écran & Écrans
True, thanks, David, that was stupid (and I tested before I wrote too because I couldn't remember-- I never use SCXs ! <s>)
CLEAR ALL
DO TEST.PRG
* test.prg
DO FORM c:\temp\x
DISPLAY MEMORY LIKE x
I must have had another another x somewhere <s>.
Yes, the variable is private not public. (It is most definitely created and, within the procedure, could be used to assign the reference elsewhere if you wanted.)
However, I still think there is a good chance that Sharon has been confused by this because of the behavior of DO FORM in the past. People use DO FORM in a PRG and they *know* they can refer to that form elsewhere. It's because of the PRIVATE scope, true it's not PUBLIC except for the command window, but it still confuses them.
Sorry for making that comment, the scoping issue should still be pretty clear, I think.
>L<
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement