Code Red

  • Thread starter Thread starter Derek Brown
  • Start date Start date
D

Derek Brown

Hi all

Is screaming normal when programming VB.

For some weird reason the code text behind all of my forms keeps turning
RED during input. Whilst I am typing it insists on jumping back one
character when I use the space bar and when I type a command such as MsgBox
the little help messages that should appear only show for a split second and
then vanishe.

Have I got a bug or have I switched something on or off
 
Red code normally means you have a syntax error somewhere. It could be too
that you have code running in the background that is causing a problem.
 
Derek said:
Is screaming normal when programming VB.

For some weird reason the code text behind all of my forms keeps turning
RED during input. Whilst I am typing it insists on jumping back one
character when I use the space bar and when I type a command such as MsgBox
the little help messages that should appear only show for a split second and
then vanishe.

Have I got a bug or have I switched something on or off


Screaming is ok, but don't overdo it ;-)

You may have a bug (no way for me to tell), but the only
time I've run into that kind of behavior is when I had an
open form that had an active Timer event in it. In general,
all forms/reports should be closed or switched to design
view before you attempt to make any code changes.
 
I've sometimes had my code editor misbehave like that, but I think rebooting
the machine has always cured it...

- Turtle
 
Derek Brown said:
Hi all

Is screaming normal when programming VB.

For some weird reason the code text behind all of my forms keeps
turning RED during input. Whilst I am typing it insists on jumping
back one character when I use the space bar and when I type a command
such as MsgBox the little help messages that should appear only show
for a split second and then vanishe.

Have I got a bug or have I switched something on or off

That happens when you have an open form with an active Timer event. The
event fires, the form's Timer event procedure code briefly grabs the
focus from the VB Editor window, and so your incomplete entry is
considered complete and flagged as syntactically incorrect.
 
Back
Top