On 2008-04-17, Jeffrey Williams <jeff.williams3188@[EMAIL PROTECTED]
> wrote:
> The difference between a local array and a global array is the '^'. A
> global array is stored on disk - a local array is stored in memory.
>
> set a="test" write a,! ;local array in memory
> set ^a="test" write ^a,! ;global array on disk
>
> Duke Normandin wrote:
>> Kevin OKane in his Mumps tutorial/book states:
>>
>> "A Mumps variable name must begin with a letter (A through Z) or
percent
>> sign (%) and may be followed by either letters, the percent sign, or
>> numbers."
>>
>> However, in some of the examples that follow, e.g.:
>>
>> set ^a="test" write ^a,!
>>
>> The variable name starts with a "^". The example worked correctly with
>> Ray Newman's Mumps. I just need clarification as to exactly how a Mumps
>> var should be named. TIA...
>>
Then how does one differentiate between a local and global variables;
and local and global variable arrays? I see that global arrays have the
^ prefix. Do global (scalar) variables have the ^ prefix as well. If
yes, how can I tell what I'm dealing with -- a global variable or a
global array?
--
Duke Normandin


|