RE: VFP9 - Finding Where a Class is Used

2007-02-28 Thread Carl Lindner
Chet,

You got it - the names are different.

I used adir to find the forms, opened the .scx, and used a locate.  It
worked.

Thanks for the reply.

Carl



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Chet Gardiner
Sent: Wednesday, February 28, 2007 4:48 PM
To: profox@leafe.com
Subject: Re: VFP9 - Finding Where a Class is Used


Are you saying you name the object "grd" from the class "ge_grd2chk"?

Anyhoo, any object in a form will have a class name in one memo field
and the classlib name in another memo field in it's record in either the
.scx or .vcx file that contains the form.

A simple fix to my chkstr routine (posted at Leafe.com) could check for
this...

Chet

Carl Lindner wrote:
> I knew about Ed's text search and tried it without success.  Did not know
> about Code References but no success there either.
>
> The problem I have is that I often rename a class when placing it on a
form.
>
> For example, if my class is "ge_grd2chk" and I name it "grd" it does not
> show in Code References or text search.
>
> Thanks again,
>
> Carl Lindner
>
>
>
>


[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
** 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.


Re: VFP9 - Finding Where a Class is Used

2007-02-28 Thread Chet Gardiner
Are you saying you name the object "grd" from the class "ge_grd2chk"?

Anyhoo, any object in a form will have a class name in one memo field 
and the classlib name in another memo field in it's record in either the 
.scx or .vcx file that contains the form.

A simple fix to my chkstr routine (posted at Leafe.com) could check for 
this...

Chet

Carl Lindner wrote:
> I knew about Ed's text search and tried it without success.  Did not know
> about Code References but no success there either.
>
> The problem I have is that I often rename a class when placing it on a form.
>
> For example, if my class is "ge_grd2chk" and I name it "grd" it does not
> show in Code References or text search.
>
> Thanks again,
>
> Carl Lindner
>
>
>
>   


___
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
** 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.


Re: VFP9 - Finding Where a Class is Used

2007-02-27 Thread Derek Kalweit
> > Why is it that VFP's own code references search tool is so much slower
> > than our own code search tools(Ed's TS, my own search.prg, etc.)? The
> > results browsing interface is nice in VFP9's search tool, but the
> > performance is pathetic-- it takes up to a minute to search for
> > something that it takes <5 seconds to search with my own tool...

> There's actually a number of reasons. You have the code in XSource.
> First pass caches all of the code. The tool generates and caches
> result sets. It does a lot more than 'grep.'

Yes, but the end-result is still slower(which is what matters here,
IMO)... I find VFP(or maybe it's the OS) caches my source files for my
own search tool-- the first search after a reboot it slowish(still <30
seconds), and subsequent searches are faster(and yes, it does see new
changes in files).


-- 
Derek


___
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
** 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.


Re: VFP9 - Finding Where a Class is Used

2007-02-27 Thread Ted Roche
On 2/27/07, Derek Kalweit <[EMAIL PROTECTED]> wrote:
>
> Why is it that VFP's own code references search tool is so much slower
> than our own code search tools(Ed's TS, my own search.prg, etc.)? The
> results browsing interface is nice in VFP9's search tool, but the
> performance is pathetic-- it takes up to a minute to search for
> something that it takes <5 seconds to search with my own tool...
>

There's actually a number of reasons. You have the code in XSource.
First pass caches all of the code. The tool generates and caches
result sets. It does a lot more than 'grep.'

-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


___
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
** 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.


RE: VFP9 - Finding Where a Class is Used

2007-02-27 Thread Carl Lindner
I knew about Ed's text search and tried it without success.  Did not know
about Code References but no success there either.

The problem I have is that I often rename a class when placing it on a form.

For example, if my class is "ge_grd2chk" and I name it "grd" it does not
show in Code References or text search.

Thanks again,

Carl Lindner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of Carl Lindner
Sent: Tuesday, February 27, 2007 10:01 AM
To: Profox
Subject: VFP9 - Finding Where a Class is Used


Suppose I have a class "ge_chk". How would I generate a list of all the
forms that contain this class?

Thanks,

Carl Lindner



[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
** 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.


Re: VFP9 - Finding Where a Class is Used

2007-02-27 Thread Peter Cushing
Carl Lindner wrote:
> Suppose I have a class "ge_chk". How would I generate a list of all the
> forms that contain this class?
>
>   
Download Ed's TS form, which is excellent.  You do the searches on 
folders and file types that you define, then it gives you the results 
with a command button to open the form/whatever at the correct place.

I use it all the time and it was worth every penny ;-)

Peter



___
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
** 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.


Re: VFP9 - Finding Where a Class is Used

2007-02-27 Thread Whil Hentzen (Pro*)
Derek Kalweit wrote:
>>> Suppose I have a class "ge_chk". How would I generate a list of all the
>>> forms that contain this class?
> 
>> Open the project in Code References and search for 'ge_chk'
> 
> Why is it that VFP's own code references search tool is so much slower
> than our own code search tools(Ed's TS, my own search.prg, etc.)? The
> results browsing interface is nice in VFP9's search tool, but the
> performance is pathetic-- it takes up to a minute to search for
> something that it takes <5 seconds to search with my own tool...

Probably all the extra security measures MSFT required the Fox team to 
add to CodeRef.

Whil




___
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
** 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.


Re: VFP9 - Finding Where a Class is Used

2007-02-27 Thread Derek Kalweit
> > Suppose I have a class "ge_chk". How would I generate a list of all the
> > forms that contain this class?

> Open the project in Code References and search for 'ge_chk'

Why is it that VFP's own code references search tool is so much slower
than our own code search tools(Ed's TS, my own search.prg, etc.)? The
results browsing interface is nice in VFP9's search tool, but the
performance is pathetic-- it takes up to a minute to search for
something that it takes <5 seconds to search with my own tool...


-- 
Derek


___
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
** 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.


Re: VFP9 - Finding Where a Class is Used

2007-02-27 Thread Ted Roche
On 2/27/07, Carl Lindner <[EMAIL PROTECTED]> wrote:
> Suppose I have a class "ge_chk". How would I generate a list of all the
> forms that contain this class?
>

Open the project in Code References and search for 'ge_chk'
-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com


___
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
** 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.


Re: VFP9 - Finding Where a Class is Used

2007-02-27 Thread Alan Bourke

On Tue, 27 Feb 2007 10:01:19 -0500, "Carl Lindner" <[EMAIL PROTECTED]> said:
> Suppose I have a class "ge_chk". How would I generate a list of all the
> forms that contain this class?

I'm sure someone has written code to do it, but personally I would
(assuming you are on 2000, XP or Vista) go to the prompt and change into
the root of your development source folder, then do:

findstr /s /i /m /c:"ge_chk" *.sc? *.vc? *.prg

That will list the filenames of any form, class or .prg that has the
text "ge_chk" in them.


-- 
  Alan Bourke
  [EMAIL PROTECTED]



___
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
** 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.