Part of identifiers in strings




CrunchCode found in strings some text snippets that could be part of an identifier name.



     If the text really is part of an identifier,
     then the affected identifier may not be camouflaged!



Example 1: Access to UserForm–elements with use only of a part of their name

A UserForm contains five text fields "Label1, Label2,...,Label5"
that are filled successively:

For bytX = 1 To 5
    frmXXX.Controls("Label" & bytX).Caption = ...
Next bytX

In this example, camouflaging the name of the UserForm elements would
result in a runtime error when they
are called by their old names ("Label1", "Label2" etc.).

The identifiers "Label1...5" must be excluded from being camouflaged.

This situation can also occur if the names "Label1... 5"
are generated in a function:

For bytX = 1 To 5
    frmXXX.Controls(prcBuildLabelName(bytX)).Caption = ...
Next bytX


Example 2: External call of procedures

If a procedure is called by an external program,
the procedure must NOT be camouflaged
or else the external program will not be able to find it.


ONLY activate those lines for which the displayed text snippet ("TEXT")
REALLY represents a part of the assigned identifier name.

Is the affected identifier listed multiple times, then the corresponding list entries
automatically synchronized.

  WARNING!
  CHECK TO SEE WHETHER OTHER INCOMPLETE REFERENCES TO IDENTIFIER EXISTS!

To limit the number of possible entries
the list ONLY contains text snippets with

– at least 2 characters match the respective identifier
– refer to UserForms, control elements and procedures

Should other incomplete references to identifier exist, then
cancel the processing and choose in the start menu

"Camouflaging names/project" –> "Options"
–>"Individually select dentifiers"
  or –>"Exclude"

and manually exclude the affected identifiers to prevent them being camouflaged!



Handling of the list:

The list is sorted on the column whose header is highlighted.
To sort on another column, click on its header.
Clicking on the same header a second time reverses its order.

Click, Spacebar: (de)activates the respective entry
double click: display position in the source–code

Ctrl + Space: (de)activates all entries in the sort column that have
the same content as the current entry

Ctrl + A: selects ALL entries
Ctrl + N: selects NO entrie

The selection of entries can also happen with:

Letter/number: Next list entry that begins in the sort column
with the respective characters

Key Plus: next selected entry
Key Minus: previous selected entry