Field data Assignment
Mark Terry
mark at abernackie.com
Sat Feb 9 07:52:00 PST 2008
On Feb 6, 2008, at 9:24 AM, David Thompson wrote:
>>
>> The simple assignment changes the character of the variable name. And
>> the assign( function does the same.
>>
>> This came up because I had 11 fields from which data was fetched and
>> stored and rather than write explicit code for each field, it was
>> simple to write a ShortCall section of code and thus eliminate a lot
>> of duplicate code. The Field name can easily be put into a variable
>> and data fetched in the ShortCall. But the storage of results cannot
>> be done by that variable, it turns into a local variable.
>
> Nothing will turn a variable that isn't already
> local, into a local. What lead you to the
> conclusion that this was happening?
Maybe it's because the shortcall operates in its own separate
procedure environment, and therefore unaware of the calling/enclosing
procedure's local variables, and vice-versa. (???)
M
More information about the Qna
mailing list