+ Start a Discussion
Ranu JainRanu Jain 

This.Debug syntax

Hi ,

 

I came to a code where I see below syntax  in class :

this.Debug =  ' XXX';

 

Here no Debug varibale is defined.

 

When I tried to write this syntax to my code it gives me error : Error: Compile Error: Variable does not exist: Debug at line 

I am not getting what this syntax mean to in that code?

Jia HuJia Hu
Debug is not a reserved keyword, you can use it whatever you like, for example,

public class Test1 {
String Debug;
public Test1() {
this.Debug = 'xxx';
System.debug(' ---- ' + Debug);
}
}