Information générale
Catégorie:
Codage, syntaxe et commandes
>Hi Dan --
>
>Not entirely sure. I've never used a memvar as a control source. I gave up all but LOCAL memvars when I moved to VFP.
>
>>If you had a public variable and in your control source you had a variable of the same name, wouldn't it hide the public variable?
I remember after training a beginning programmer for just a short while, he was placing variables in the form's control source without declaring them any where. Actually, I had never seen anything like that before, but it turned out that the variable was private and could be seen throughout the form. I believe it's for backward compatibility.
I would guess that if you had declared a public variable that the control source's variable would hide the public variable being private by default. But without testing it, there's no way to tell.
Dan
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