Ed Leafe wrote:
> On Dec 4, 2007, at 10:20 AM, MB Software Solutions wrote:
>
>   
>>> I have always declared arrays using
>>> LOCAL ARRAY laTables(14)
>>>       
>> Hmmm...I never added the ARRAY keyword before.  Seems better (for
>> readability anyway).
>>     
>
>       For readability, I *never* use parentheses with arrays. Square  
> brackets are much less ambiguous:
>
> LOCAL laTables[14]
>
>       Since I tend to have lots of variables in the local declaration, I  
> don't use the ARRAY keyword, since I find this confusing:
>
> LOCAL ARRAY laTables[14], lcFoo
>
>       Is lcFoo an array? You might be able to guess by the Hungarian 'c',  
> but maybe it's a typo, or written by someone who doesn't follow  
> Hungarian precisely. Or maybe they meant an array of character values?
>   
Actually I do use the square brackets[], in this example I just copied 
and pasted out of the code Michael posted.

As far as using the ARRAY keyword I separate my declarations like so...

LOCAL MyVar1 as Integer ,;
               MyVar2 as String....

LOCAL ARRAY laMyArray1[10], MyArray2[20]

Not necessary but I like the clarity.





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to