Search/Replace function in FF3 acting strangely *Solved!*

Started by John Waalkes, June 29, 2010, 03:35:10 PM

Previous topic - Next topic

John Waalkes

Long story short. Don't include spaces in your .inc file names. I had changed the treeview.inc filename to "Modbus Data Collector.inc and then all of the problems started. Changing it to "Modbus_Data_Collector.inc fixed it.


I'm not a big fan of declaring variables "As Something" (something being Long, Integer, String, etc) such as:

Global DiscoveredNodes() As String

I prefer to declare variables with the type embedded within the variable such as:

Global DiscoveredNodes$()

That way I know what type of variable it is throughout the program.

So while going through my code and doing a Search for DiscoveredNodes( and Replace them with Global DiscoveredNodes$( I found that the Search and Replace function missed many occurrences of DiscoveredNodes(.

Oddly enough, when I would try it again it would usually work. I'm going to have to look at my program line by line to see if it missed any, but I think that I got them all (the program compiles and runs fine).

And I did have the "Scope" radio button set to "Entire Project" when I did the search and replace.

Edit:

Since I was moving about in my program to come up with the example that I used here I ended up losing my place in the program. No problem, I'll just search for 'Local and find it that way.

Nope, it didn't find anything. This was with "Scope" set to "Entire Project".

However, just for grins, I selected "Current Document" and it found it then with no problem.

So, I scrolled back to the beginning of my code and set the "Scope" back to "Entire Project" and tried again. This time it found 'Local with no problem.

Just to be clear here, I didn't touch my search string during any of these attempts.

And I'm using FF3.09.


Thanks, :)

John