How to find a method? 
Author Message
 How to find a method?

I'm using P9 and I am trying to make my way through the following code:

...

if WorkLib5.CreateReportResults() < 0 then
 msgStop("Error creating Results","Unable to get test results for "+
     "reportable results")
   return
endif

...

I need to look at the method WorkLib5.CreateReportResults.  I can't seem to
find any way to figure out where this exists in the app I've inherited.  No,
there is no file named "worklib5" anywhere in the directory structure, as
far as I can see.

How do I view code called from a method?

TIA,

Karl Perry



Mon, 12 Dec 2005 04:43:17 GMT
 How to find a method?

Karl,

WorkLib5 is a library type variable, declared as

WorkLib5 library

Find somewhere in the code WorkLib5.open(SomeFileName) - and SomeFileName gives
you those library file name.

   Vladimir Menkin

Quote:

> I'm using P9 and I am trying to make my way through the following code:

> ....

> if WorkLib5.CreateReportResults() < 0 then
>  msgStop("Error creating Results","Unable to get test results for "+
>      "reportable results")
>    return
> endif

> ....

> I need to look at the method WorkLib5.CreateReportResults.  I can't seem to
> find any way to figure out where this exists in the app I've inherited.  No,
> there is no file named "worklib5" anywhere in the directory structure, as
> far as I can see.

> How do I view code called from a method?

> TIA,

> Karl Perry



Mon, 12 Dec 2005 04:48:43 GMT
 How to find a method?
Thanks.

Is there any way to do a "global search" in all code in the app for this?

Karl


Quote:
> Karl,

> WorkLib5 is a library type variable, declared as

> WorkLib5 library

> Find somewhere in the code WorkLib5.open(SomeFileName) - and SomeFileName
gives
> you those library file name.

>    Vladimir Menkin


> > I'm using P9 and I am trying to make my way through the following code:

> > ....

> > if WorkLib5.CreateReportResults() < 0 then
> >  msgStop("Error creating Results","Unable to get test results for "+
> >      "reportable results")
> >    return
> > endif

> > ....

> > I need to look at the method WorkLib5.CreateReportResults.  I can't seem
to
> > find any way to figure out where this exists in the app I've inherited.
No,
> > there is no file named "worklib5" anywhere in the directory structure,
as
> > far as I can see.

> > How do I view code called from a method?

> > TIA,

> > Karl Perry



Mon, 12 Dec 2005 04:51:57 GMT
 How to find a method?

Quote:

> I'm using P9 and I am trying to make my way through the following code:

> if WorkLib5.CreateReportResults() < 0 then
>  msgStop("Error creating Results","Unable to get test results for "+
>      "reportable results")
>    return
> endif

> ...

> I need to look at the method WorkLib5.CreateReportResults.  I can't seem
> to
> find any way to figure out where this exists in the app I've inherited.
> No, there is no file named "worklib5" anywhere in the directory structure,
> as far as I can see.

> How do I view code called from a method?

You should find a global variablenamed "WorkLib5," probably in the "var"
section of the form (root) object.  You should find code, probably in the
form's "init" or "open" method, that "opens" a certain library (.LSL) file.

The method being called will be found in that library.

Paradox for Windows applications use this technique a lot because a library
(which is basically a Windows DLL) is a place to put code that everyone can
easily share.  Because Windows is very well used to handling DLL-files
efficiently, Paradox for Windows in-effect "piggybacks" off of Windows' own
memory-management to provide this very useful feature.

----------------------------------
Fast automatic table repair at a click of a mouse!
http://www.sundialservices.com/products/chimneysweep



Mon, 12 Dec 2005 04:54:01 GMT
 How to find a method?
Karl,

Yes. Open any method, press ctrl-Z, enter a text to search for and check "Global
search" checkbox. When the first occurence will be found, press ctrl-A to find
next occurence.

   Vladimir

Quote:

> Thanks.

> Is there any way to do a "global search" in all code in the app for this?

> Karl



>>Karl,

>>WorkLib5 is a library type variable, declared as

>>WorkLib5 library

>>Find somewhere in the code WorkLib5.open(SomeFileName) - and SomeFileName

> gives

>>you those library file name.

>>   Vladimir Menkin


>>>I'm using P9 and I am trying to make my way through the following code:

>>>....

>>>if WorkLib5.CreateReportResults() < 0 then
>>> msgStop("Error creating Results","Unable to get test results for "+
>>>     "reportable results")
>>>   return
>>>endif

>>>....

>>>I need to look at the method WorkLib5.CreateReportResults.  I can't seem

> to

>>>find any way to figure out where this exists in the app I've inherited.

> No,

>>>there is no file named "worklib5" anywhere in the directory structure,

> as

>>>far as I can see.

>>>How do I view code called from a method?

>>>TIA,

>>>Karl Perry



Mon, 12 Dec 2005 05:01:41 GMT
 How to find a method?


Quote:
> Karl,

> Yes. Open any method, press ctrl-Z, enter a text to search for and check
"Global
> search" checkbox. When the first occurence will be found, press ctrl-A to
find
> next occurence.

Thanks.  I figured this out about fif{*filter*} seconds after I sent the last
message.  Sorry.

Is there any way to do a truly global search, meaning "search all Paradox
code in the DOS directory?"  I've tried the Windows Search capability and so
far have not found the text I'm looking for (this is a different thing I'm
looking for now - I found the "WorkLib5" reference).

TIA,

Karl



Mon, 12 Dec 2005 05:15:51 GMT
 How to find a method?
Karl,

Quote:
> Is there any way to do a truly global search, meaning "search all Paradox
> code in the DOS directory?"  

Yes. See ProView at

http://cust.east.ru/~menkin

   Vladimir Menkin



Mon, 12 Dec 2005 05:27:52 GMT
 How to find a method?
Forgot to mention.

Probably ProDoc (see the same site) may be useful for you - it's a documentation
tool, which includes code dependencies analyser

  Vladimir



Mon, 12 Dec 2005 05:32:31 GMT
 
 [ 8 post ] 

 Relevant Pages 

1. Finding a record without Find/Seek methods...

2. ADOCE 3.1 and Find/Seek methods

3. I find a method to a strange problem.

4. Help With Find First Method

5. Field Names containing Spaces and the Find First method

6. need help searching with find like method

7. SEEK Vs FIND FIRST METHOD'S IN VB..........Which is faster?!!

8. ADO find method compare with DAO findfirst method...

9. Finding "FIND" method

10. Find method

11. Find method fails

12. Data Method not found


 
Powered by phpBB® Forum Software