Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCATTER not working properly
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00507233
Message ID:
00507569
Vues:
8
>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
Fil
Voir

Click here to load this message in the networking platform