Information générale
Catégorie:
Codage, syntaxe et commandes
>Ken,
>
>One more question/thought/issue on SCATTER NAME oTable1 MEMO that has me thinking...
>
>It worked...
>
>But I was wondering if I did something wrong by declaring PUBLIC oTable1, when I used LOCAL oTable1 in the form Init, I got an error "Alias oTable1 not found" or something like it.
>
>But I figure I am OK declaring PUBLIC oTable1 as long as in my other form I delcare PUBLIC oTable2, that way fieldnames won't get confused. Am I right and does what I did to make this work make sense? Or is there a better way to define oTable1 such as in the .PRG that runs the forms? I just want to make sure I do this completely right and not half-way since I will be applying this same technique to many forms.
>
>Thanks very much. That was easier than changing DB fieldnames. Whew... Learned something new today.
I think you'ld do best by making oTable a form property in both forms. That would eliminate the need for any public variable and also eliminate the variable scoping problems you undoubtedly ran into with SCATTER MEMVAR.
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