Page 1 of 1

Confusing compilation error

Posted: Wed Dec 07, 2016 6:25 am
by sandamal
Hi Guys,

I created a record module for get a text from an element. and create a module variable and assign that text.

then I convert that to a User code , inside code I almost re-write the code, Did not use that previously created variable.

and things ran well as expected.

later on since im not using that created variable (it was showing as a unbound variable) I deleted it via Variables window.

Now it is giving a compilation error. im unable to find any reference for that variable within the code too.

can some expert make a suggestion to resolve this.

and ranorex is just giving a general error on compile error . :|

Re: Confusing compilation error

Posted: Wed Dec 07, 2016 8:23 am
by odklizec
Hi,

Have you searched for the presence of given variable name in all solution files (e.g. using an external file editor)? Maybe there is still some reference hidden somewhere in the project files? ;) I believe I've experienced such issue once or twice in the past.

Eventually, try to remove the module you modified from the solution. Maybe there is a code error, which is causing the compilation problem and the fact it started after removing the variable is just a coincidence? ;)