Re: Is there a way to do this in the IDE?



do_not@xxxxxxxxx wrote:
I'm new to Delphi but there is one feature I can't seem to find (if it
exists). In Visual basic, once you declare a variable, you can type it
in later in your code and the editor will automatically change the
case to reflect the way it was declared. For example:
Dim A as string
a="hi" typed in would become A="hi"

I got very used to relying on that feature to catch typing mistakes.
Is there a way to do that in Codegear 2007?


By "typing mistakes" do you mean getting the case wrong, or typing the wrong variable name and noticing it's wrong because it didn't uppercase itself?

If you're using that to catch wrong variable name mistakes, the equivalent feature in Delphi is Error Insight. This will draw a red squiggly line underneath identifiers it doesn't understand in the current context.

In BDS 2006 you turn it on/off under Tools | Options | Editor Options | Code Insight | Error Insight.


Steve Troxell
.