General information
Category:
Coding, syntax & commands
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only