Author: Paul Newton
Posted: 2011-03-29 15:11:33 Link
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
_______________________________________________
Post Messages to: ProFox@leafe.com
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/4D922EE5.8020504@foxpertise.com
** 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.
Author: Tracy Pearson
Posted: 2011-03-29 15:38:33 Link
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
_______________________________________________
Post Messages to: ProFox@leafe.com
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/000501cbee48$e3f82ea0$abe88be0$@com
** 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.
Author: Paul Newton
Posted: 2011-03-29 15:44:30 Link
Tracy
Many thanks for your reply. That sounds like it might be the one I was
looking for.
I am looking into it now and will let you know.
Once again, many thanks for notably prompt reply !
Perhaps, Ed should think of a way of incorporating "most rapid and
fruitful" replies in his monthly stats ... :)
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: ProFox@leafe.com
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/4D92369E.6020609@foxpertise.com
** 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.
Author: Paul Newton
Posted: 2011-03-29 15:59:06 Link
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: ProFox@leafe.com
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/4D923A0A.80309@foxpertise.com
** 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.
Author: Tracy Pearson
Posted: 2011-03-29 16:05:49 Link
Paul Newton wrote on 2011-03-29:
> Tracy,
>
> Further to my previous reply, running ParseLocals on a prg which
> contains this:
>
Paul,
That's all the ParseLocals I use does. I've not used anything that wrote it.
I'm not sure where this came from since this is the only header in the file:
* ToDo:
* The parser seems to get confused when there are PROTECTED/HIDDEN
methods
* The new SET TEXTMERGE TO MEMVAR option is not detected
So, if you're changing yours, have a look at those things. Might be more
too.
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: ProFox@leafe.com
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/000a01cbee4c$b33c26a0$19b473e0$@com
** 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.
Author: Ed Leafe
Posted: 2011-03-29 16:14:31 Link
On Mar 29, 2011, at 3:44 PM, Paul Newton wrote:
> Perhaps, Ed should think of a way of incorporating "most rapid and
> fruitful" replies in his monthly stats ... :)
Only if it could be balanced by "stupidest, most unhelpful" replies stats, too!
-- Ed Leafe
_______________________________________________
Post Messages to: ProFox@leafe.com
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/CB499005-7BB4-485A-A962-7686CFA03356@leafe.com
** 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.
Author: Paul Newton
Posted: 2011-03-29 16:14:54 Link
Thanks for that, Tracy. There is an entry in FoxWiki with a number of
things which I will look into ...
Paul
On 29/03/2011 21:05, Tracy Pearson wrote:
> Paul Newton wrote on 2011-03-29:
>> Tracy,
>>
>> Further to my previous reply, running ParseLocals on a prg which
>> contains this:
>>
>
> Paul,
>
> That's all the ParseLocals I use does. I've not used anything that wrote it.
> I'm not sure where this came from since this is the only header in the file:
>
> * ToDo:
> * The parser seems to get confused when there are PROTECTED/HIDDEN
> methods
> * The new SET TEXTMERGE TO MEMVAR option is not detected
>
> So, if you're changing yours, have a look at those things. Might be more
> too.
>
> Tracy Pearson
> PowerChurch Software
>
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
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/4D923DBE.9080101@foxpertise.com
** 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.
Author: Paul Newton
Posted: 2011-03-29 16:18:02 Link
On 29/03/2011 21:14, Ed Leafe wrote:
> On Mar 29, 2011, at 3:44 PM, Paul Newton wrote:
>
>> Perhaps, Ed should think of a way of incorporating "most rapid and
>> fruitful" replies in his monthly stats ... :)
>
> Only if it could be balanced by "stupidest, most unhelpful" replies stats, too!
>
>
> -- Ed Leafe
LOL - I would vote ! And thanks again Ed for this fantastic resource ...
_______________________________________________
Post Messages to: ProFox@leafe.com
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/4D923E7A.7000201@foxpertise.com
** 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.
Author: Tracy Pearson
Posted: 2011-03-29 16:22:08 Link
Paul Newton wrote on 2011-03-29:
> On 29/03/2011 21:14, Ed Leafe wrote:
>> On Mar 29, 2011, at 3:44 PM, Paul Newton wrote:
>>
>>> Perhaps, Ed should think of a way of incorporating "most rapid and
>>> fruitful" replies in his monthly stats ... :)
>>
>> Only if it could be balanced by "stupidest, most unhelpful" replies
>> stats, too!
>>
>>
>> -- Ed Leafe
> LOL - I would vote ! And thanks again Ed for this fantastic resource ...
>
Ed,
Yes, Thanks to Ed for the great resource!
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: ProFox@leafe.com
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/000c01cbee4e$fac586e0$f05094a0$@com
** 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.
Author: Mike Copeland
Posted: 2011-03-29 16:55:08 Link
Fair and balanced, just like Fox News!
Mike
> On Mar 29, 2011, at 3:44 PM, Paul Newton wrote:
>
>> Perhaps, Ed should think of a way of incorporating "most rapid and
>> fruitful" replies in his monthly stats ... :)
>
> Only if it could be balanced by "stupidest, most unhelpful" replies stats, too!
>
>
> -- Ed Leafe
>
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
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/4D92472C.5050904@ggisoft.com
** 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.