komfa:
--------------------------------------------------------------------------------
but how many browsers or qeury definition do you have in one programm-file?
--------------------------------------------------------------------------------
Sorry for that much things. I only wanted to know if it is possible. Sometimes
definitions are made when they're needed in middle of if Statements in
procedures or functions.
Therefore to find that things it would be good.
Priority is surely for things needed often. I have less temp-tables than
buffers, needed, to get extra informations without unlocking a current find, or
to search another information in the same table within an For each Statement. To
know if a definition is guilty it is surely better to display it in the
Code-Explorer under the Function or Procedure in which it is defined. I have to
admitt that I'm working with Code I haven't written myself. To find the made
definitions can waste a lot of time because they are often defined in a calling
procedure before. Therefore it also would be good to parse for run Statements
displayed under the Procedure. Workfiles are less used but have almost the same
function like a temp-table.
Exambles:
<buffer>
define buffer Buf_Place for Place.
define buffer Buf_TT for temp-table TT.
<Workfile>
DEFINE [ [ NEW ] SHARED ] [ PRIVATE ]
{ WORK-TABLE | WORKFILE } work-table-name [ NO-UNDO ]
[ LIKE tablename [ VALIDATE ] ]
[ FIELD field-name { AS data-type | LIKE field }
[ field-options ] ] ...
<temp-tables>
DEFINE [ [ NEW [ GLOBAL ] ] SHARED ]
[ PRIVATE | PROTECTED ] TEMP-TABLE temp-table-name [ NO-UNDO ]
[ NAMESPACE-URI namespace ] [ NAMESPACE-PREFIX prefix ]
[ REFERENCE-ONLY ]
[ LIKE table-name
[ VALIDATE ]
[ USE-INDEX index-name [ AS PRIMARY ] ] ... ]
[ RCODE-INFORMATION ]
[ BEFORE-TABLE before-table-name ]
[ FIELD field-name
{ AS data-type | LIKE field [ VALIDATE ] }
[ field-options ]
] ...
[ INDEX index-name
[ IS [ UNIQUE ] [ PRIMARY ] [ WORD-INDEX ] ]
{ index-field [ ASCENDING | DESCENDING ] } ...
] ...
<run Statements>
run search.
or
run search(input param1,
input-output param2,
output param3).
By the way, Jan, there's one bug with the Syntax:
as shown in Syntaxdefinition for temp-tables there can be some keywords before
the keyword temp-table.
Worst case:
define NEW GLOBAL SHARED PRIVATE temp-table Name .
define NEW GLOBAL SHARED PROTECTED temp-table Name .
In this case the Code-Explorer is not working correctly.
Thanks Holger
--
<http://forum.pspad.com/read.php?6,41714,41748>
PSPad freeware editor http://www.pspad.com