Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Kickin around memory variables?
Message
From
24/05/2001 11:51:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00510941
Message ID:
00510962
Views:
15
>1. I thought SCATTER created memory variables from fieldnames, but yet they don't seem to save on a GATHER unless I declare the variables as PUBLIC. I thought SCATTER took care of that for me? Huh?

Sounds like a scope problem. When are you performing the SCATTER? If the variables are created in one method, they won't be visible in other methods unless you make them PUBLIC.

Have you considered using SCATTER NAME instead? E.g.,

SCATTER NAME ThisForm.oRecord

This makes the scattered values accessible from anywhere in the form.

HTH,

-Will
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform