Page 1 of 1

variable (value) in comment

Posted: Fri Sep 02, 2011 2:54 pm
by dman
is it possible to display a variable's value into a comment (e.g. by some escape characters)?
I'm referring to the comments from the recordings, which are displayed in console when running projects

All the best,
D.

Re: variable (value) in comment

Posted: Fri Sep 02, 2011 9:46 pm
by Ciege
I'm a little confused... Are you asking about (A) displaying variable values in the resulting ranorex report?
Or literally, (B) variable values in the comments in the code?

If A, something like this:

Code: Select all

Report.Info("** My Report Comment: " + MyVariable + ".");
If B, well then... I'm not sure what that would mean... Since you only see comments when modifying the code and/or debugging. In which case you would have a look at the variable for its value.

Re: variable (value) in comment

Posted: Mon Sep 05, 2011 10:01 am
by dman
HI Ciege,

and thank you for your reply!

It's (A) - only that is related to the recorder view comments (in the report I'd like to get the value); hence no code.
Please see the screenshot I've attached.

All the best,
D.
variable in comment.jpg

Re: variable (value) in comment

Posted: Mon Sep 05, 2011 12:12 pm
by dman
ha ha... if I convert the recording to user code - I can use your example ;)

Re: variable (value) in comment

Posted: Tue Sep 06, 2011 3:56 pm
by Ciege
dman wrote:ha ha... if I convert the recording to user code - I can use your example ;)
So is that you did and are you all working as expected now?

Re: variable (value) in comment

Posted: Thu Sep 08, 2011 9:37 am
by dman
sure it works - once the matter goes to code, anything is possible ;)

thanx man!

D.