Sign in to follow this  
Followers 0
1bobby

Cross Reference for Variables

6 posts in this topic

Just curious if there is a Cross Reference for Variables fields available that would tell the source of the $name fields and the address (line numbers) that make reference to that locations. Back in the old days we could get one from the complier program. This was a good tool to locate what a variable name contains, and who changed it. Just hoping I guess. I seem to get lost pretty easily in my old age

Share this post


Link to post
Share on other sites



Just curious if there is a Cross Reference for Variables fields available that would tell the source of the $name fields and the address (line numbers) that make reference to that locations. Back in the old days we could get one from the complier program. This was a good tool to locate what a variable name contains, and who changed it. Just hoping I guess. I seem to get lost pretty easily in my old age

Guess it was a dumb idea, sorry!

Share this post


Link to post
Share on other sites

Just curious if there is a Cross Reference for Variables fields available that would tell the source of the $name fields and the address (line numbers) that make reference to that locations. Back in the old days we could get one from the complier program. This was a good tool to locate what a variable name contains, and who changed it. Just hoping I guess. I seem to get lost pretty easily in my old age

Do you mean something like this?

This is at the end of the report that running Tidy.exe on your script or 'Tidy AutoIt Source' from the Scite Tools menu.

======================
=== xref reports =====
======================

== User functions =================================================================================================
                          Func
Function name            Row     Referenced at Row(s)
========================= ====== ==================================================================================
BuildQuery              00288  00419 00495
ComErrFunc              00782 
Gui_btnOutBrowse_Click  00258  00130
Gui_btnRun_Click          00267  00132
RunProcesses              00577  00269
_CheckIfDatabaseIsAvailable  00766  00804
__Gui_GetSavedSettings  00155  00120
__Gui_SaveSettings      00192  00268
__Gui_StatusBarTimer_Update  00231 
generateQueries        00336  00624
runQueries              00658  00636 00648
writeDiffFile            00708 
writeQueries              00376  00370
writeSpatialQuery        00505  00443

#### indicates that this specific variable only occurs one time in the script.
---- indicates that this specific variable isn't declared with Dim/Local/Global/Const.

== Variables ====================================================================================================

==
Variable name            Dim   Used in Row(s)
========================= ===== ===================================================================================
$BS_FLAT                  ----- 00109 00110
$BS_FLAT)                00109 00110
$DS_MODALFRAME          ----- 00066
#### $DS_MODALFRAME))    00066
$ES_AUTOHSCROLL        ----- 00078
#### $ES_AUTOHSCROLL))  00078
$ES_PASSWORD              ----- 00078
$GUI_CHECKED              ----- 00597 00598 00599
$GUI_DISABLE              ----- 00602 00603 00604 00605 00606 00607 00608 00609 00610 00611 00612 00613
$GUI_ENABLE            ----- 00270 00271 00272 00273 00274 00275 00276 00277 00278 00279 00280 00281
$GUI_EVENT_CLOSE          ----- 00125 00248
$GUI_EVENT_MAXIMIZE    ----- 00133
$GUI_EVENT_RESTORE      ----- 00133
$GUI_UNCHECKED          ----- 00156 00157 00158 00199 00200 00201
$GUI_hpgbMain            00114 00115 00143 00144
$GUI_hstbMain            00112 00142
$GUI_pgbMain              00113 00114 00139 00140 00143 00620 00623 00630 00633 00639 00645 00651 00702
$GUI_stbMain              00111 00112 00115 00136 00137 00142 00144 00145 00243 00245 00622 00625 00634 00638 00646 
                                00650 00678 00682
$Gui_edtMaxX              00103 00517
$Gui_edtMaxY              00106 00519
$Gui_edtMinX              00097 00516

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

Share this post


Link to post
Share on other sites

Do you mean something like this?

This is at the end of the report that running Tidy.exe on your script or 'Tidy AutoIt Source' from the Scite Tools menu.

======================
=== xref reports =====
======================

== User functions =================================================================================================
                          Func
Function name            Row     Referenced at Row(s)
========================= ====== ==================================================================================
BuildQuery              00288  00419 00495
ComErrFunc              00782 
Gui_btnOutBrowse_Click  00258  00130
Gui_btnRun_Click          00267  00132
RunProcesses              00577  00269
_CheckIfDatabaseIsAvailable  00766  00804
__Gui_GetSavedSettings  00155  00120
__Gui_SaveSettings      00192  00268
__Gui_StatusBarTimer_Update  00231 
generateQueries        00336  00624
runQueries              00658  00636 00648
writeDiffFile            00708 
writeQueries              00376  00370
writeSpatialQuery        00505  00443

#### indicates that this specific variable only occurs one time in the script.
---- indicates that this specific variable isn't declared with Dim/Local/Global/Const.

== Variables ====================================================================================================


==
Variable name            Dim   Used in Row(s)
========================= ===== ===================================================================================
$BS_FLAT                  ----- 00109 00110
$BS_FLAT)                00109 00110
$DS_MODALFRAME          ----- 00066
#### $DS_MODALFRAME))    00066
$ES_AUTOHSCROLL        ----- 00078
#### $ES_AUTOHSCROLL))  00078
$ES_PASSWORD              ----- 00078
$GUI_CHECKED              ----- 00597 00598 00599
$GUI_DISABLE              ----- 00602 00603 00604 00605 00606 00607 00608 00609 00610 00611 00612 00613
$GUI_ENABLE            ----- 00270 00271 00272 00273 00274 00275 00276 00277 00278 00279 00280 00281
$GUI_EVENT_CLOSE          ----- 00125 00248
$GUI_EVENT_MAXIMIZE    ----- 00133
$GUI_EVENT_RESTORE      ----- 00133
$GUI_UNCHECKED          ----- 00156 00157 00158 00199 00200 00201
$GUI_hpgbMain            00114 00115 00143 00144
$GUI_hstbMain            00112 00142
$GUI_pgbMain              00113 00114 00139 00140 00143 00620 00623 00630 00633 00639 00645 00651 00702
$GUI_stbMain              00111 00112 00115 00136 00137 00142 00144 00145 00243 00245 00622 00625 00634 00638 00646 
                                00650 00678 00682
$Gui_edtMaxX              00103 00517
$Gui_edtMaxY              00106 00519
$Gui_edtMinX              00097 00516

Share this post


Link to post
Share on other sites

That is just what the Doctor ordered. Reminds me of the old Assembly days doing machine langage programming days. Thank you, never saw that in the Tidy. bobby

Share this post


Link to post
Share on other sites

That is just what the Doctor ordered. Reminds me of the old Assembly days doing machine langage programming days. Thank you, never saw that in the Tidy. bobby

I was more thinking of the good old Cobol compiles when creating it. muttley

Anyways, you will have to tell Tidy to generate the Documentation file. See the SciTE4Autoit3 helpfile for the details. :)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0