Tracy,
Further to my previous reply, running ParseLocals on a prg which
contains this:
Function One
Local x
x = 4
y = x * 2
Function Two
x = 5
y = x + 3
Function Three
Local Fred
Scatter Name test
Produces this Iin ParseLocals.ERR:
************
Function One
************
Add ;
Local y
************
Function Two
************
Add ;
Local x, y
**************
Function Three
**************
Add ;
Local test
Remove Local ;
Fred, ;
Which is really great - BUT I am sure that I came across something
similar which would actually make the required changes ...
If I can't find it, ParseLocals will make an excellent starting point
though.
Paul
On 29/03/2011 20:38, Tracy Pearson wrote:
> Paul Newton wrote on 2011-03-29:
>> Hi all
>>
>> I have just been looking at DeclareLocals.PRG from "Megafox" but it
>> only seems to check for and add a LOCAL declaration for a variable at
>> the cursor position.
>>
>> That's fair enough, but I was SURE that I came across a utility way
>> back when which would analyse the open code-editing window and
>> automagically find all the variables which needed to be declared
>> LOCAL, adding the declarations as necessary.
>>
>> Does this ring a bell with anybody ?
>>
>> Thanks
>>
>> Paul Newton
> Paul,
>
> ParseLocals is a function I recall.
>
> Tracy Pearson
> PowerChurch Software
>
>
>
>
[excessive quoting removed by server]
_______________________________________________
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.