Forum > Debugger

Why I always see that???

(1/1)

CCJ:
When I run the program, whatever program is and whatever variable it includes, I always see the sentence below in the Messages:

Hint: Variable "f" does not seem to be initialized

I've done all I know in TP7 language, but it is still there.  Can anybody tell me why it got like this?

matthijs:
Local variables are not initialized. So if you use a local variable in your procedure without it being assigned a value, this is the hint you get. Compilers are not clever enough to understand that if you use an if ... then ... else and in both branches your variable gets assigned that your variable is initialized.
So just check your code to make sure that you give your variable a value before using it and if so ignore the hint. :)

CCJ:
Thanks!

Navigation

[0] Message Index

Go to full version