IonicWind Software

IWBasic => General Questions => Topic started by: TexasPete on December 26, 2008, 05:14:33 AM

Title: Error message list
Post by: TexasPete on December 26, 2008, 05:14:33 AM
Paul or anybody. I went to the user's guide and did a search for error messages. I did not find what I was looking for.
I am debuging a small program and I get an unreferenced error code in the window pane. Where is a page for brief explanation of the error codes and what I should be looking for. I do have the variable defined.

Texas Pete
Title: Re: Error message list
Post by: billhsln on December 26, 2008, 10:55:46 AM
If your error is "Unreferenced Variable", that just means that the variable is defined, but NOT used in your program.

I personally really like that message, tells me I have a variable that I can remove or I missed something.

Bill
Title: Re: Error message list
Post by: Ionic Wind Support Team on December 26, 2008, 10:59:35 AM
In that case it would be a warning, and not an error.
Title: Re: Error message list
Post by: TexasPete on December 26, 2008, 11:22:27 AM
Bill I like that to. Is there a tutorial  or written explanation of each any where in the manual.
Maybe I was trying to look up the wrong word under find or something.
Thanks
Texas Pete
Title: Re: Error message list
Post by: Ionic Wind Support Team on December 26, 2008, 11:54:49 AM
Pete,
There is no list as there are only a couple of warning messages .  "unreferenced variable" is very self explanatory.  "uninitialized variable" means you used a variable without initializing it first, variables defined in a subroutine are located on the stack so guaranteed to contain random values until you assign them

sub mysub
int i
int k
k=i +1
endsub

Will generate that warning because "i" was never set to anything.

Paul