Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCATTER not working properly
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00507233
Message ID:
00507337
Views:
9
>Hi Ken,
>
>Thanks for helping me, but you made me realize something.
>
>Now I am in deep DO DO. I DO want to SCATTER to memory variables and not to objects. Of course all memory variables (m.fields) get confused between the two tables when I bounce back and forth between the two forms because the fieldnames are the same in the two tables.
>
>And I SCATTER the first table when the first form Inits and SCATTER the second table when the second form Inits. So they clobber each other with each other's data when I bounce between the two forms. And I am only looking at the data, not adding, not editing.
>
>What I should do to keep the two tables/two forms from getting scrambled/jumbled? I could change the fieldnames in the tables so that they aren't identical, but I was hoping to be able to keep the fieldnames the descriptive names that they are. Hmmmmmm...
>
>I don't do a GATHER until one presses the Save button on a form after they go into Add or Edit mode. I figured the second SCATTER in the second form would replace the memory varibles that were still there from the first SCATTER in the first form. And vice versa, but it doesn't seem to work that way. Am I missing something? Besides brains. LOL. The saga continues.

Why not SCATTER to a custom property of the form?

BTW, the problem you're experiencing is because you're using private or public variables rather than locals. That's one of the short-comings of them.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform