>Hi Nadya:
>
>I think that was it. The memvars were declared in a .prg which called the report, but I had declared them as LOCAL. When I changed their declaration to PRIVATE everything seemed to work.
>
>Actually, my declaration worked even though I didn't declare my variables as public. Are they public by default?
>
>Thanks.
By default they are private. But I usually declare all variables and their scope explicitly (In VB I allways have Option Explicit set).
If it would be a form, you can declare your variables as local and this would work (though it's strange). In prg seems to be another story, so you better declare them as private. Actually, I have a vague idea, why we can use local in forms and should use private in programs, but it doesn't matter, we can just take it as a fact.
If it's not broken, fix it until it is.
My Blog